Piramal Group interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Piramal Group
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I first learned a programming language in my first year. Then, I practiced DSA from various platforms like Leetcode, GFG, etc. Leetcode is one of the best platforms to practice a wide variety of questions. For other subjects like OS, CN, DBMS, etc, I prepared it from my college subjects only.
Application story
It was through college. So, we get to know through the TNP cell and they circulate one Google form to fill the details. This form was shared by Piramal HRs and they shortlist approx 20 students for further rounds
Why selected/rejected for the role?
My main reason for the selection was an in-depth knowledge of advanced DSA topics like Trees. I had prepared Trees very well, so I was able to give optimized approaches for Tree-based questions.
Preparation
Duration: 5 months
Topics: Data Structures, OOPS, Operating Systems, Algorithms, C
Tip
Tip

Tip 1 : Code daily
Tip 2 : Study Data Structures
Tip 3 : Be Confident

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Mention only what you are confident about
Tip 2 : Mention tools & technologies used in the project as well

Interview rounds

01
Round
Easy
Online Coding Test
Duration90 minutes
Interview date4 Nov 2021
Coding problem2

Two coding questions were there and each round was qualifying round

1. Longest Increasing Subsequence

Moderate
30m average time
65% success
0/80
Asked in companies
PhonePeChegg Inc.Barclays

For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increasing order.

Strictly Increasing Sequence is when each term in the sequence is larger than the preceding term.

For example:
[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Problem approach

I first thought of the brute force approach.
Then tried to solve for LIS which I had already solved once.
Then implemented the approach of DP for LDS.

Try solving now

2. Next Greater Element

Easy
10m average time
90% success
0/40
Asked in companies
IBMInfo Edge India (Naukri.com)Amazon

You are given an array 'a' of size 'n'.



The Next Greater Element for an element 'x' is the first element on the right side of 'x' in the array, which is greater than 'x'.


If no greater elements exist to the right of 'x', consider the next greater element as -1.


For example:
Input: 'a' = [7, 12, 1, 20]

Output: NGE = [12, 20, 20, -1]

Explanation: For the given array,

- The next greater element for 7 is 12.

- The next greater element for 12 is 20. 

- The next greater element for 1 is 20. 

- There is no greater element for 20 on the right side. So we consider NGE as -1.
Problem approach

I solved using Stack

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date5 Nov 2021
Coding problem2

1. Ninja And The Rows

Easy
15m average time
87% success
0/40
Asked in companies
AppleAdobeLTI - Larsen & Toubro Infotech

Ninja has been provided a matrix 'MAT' of size 'N X M' where 'M' is the number of columns in the matrix, and 'N' is the number of rows.

The weight of the particular row is the sum of all elements in it. Ninja wants to find the maximum weight amongst all the rows.

Your task is to help the ninja find the maximum weight amongst all the rows.

EXAMPLE:
Input: 'N' = 2, 'M' = 3, 'MAT' = [[1, 2, 3], [2, 0, 0]]
Output: 6

The weight of first row is 1 + 2 + 3 = 6
The weight of the second row is 2 + 0 + 0 = 2; hence the answer will be a maximum of 2 and 6, which is 6.
Try solving now

2. Optimal BST

Hard
55m average time
45% success
0/120
Asked in companies
OracleShareChatLinkedIn

Given a sorted array of keys of BST and an array of frequency counts of each key in the same order as in the given inorder traversal. The frequency of an element is the number of searches made to that element. Construct a binary search tree from the given keys such that the total cost of all the searches is minimum.

Cost of searching a key is its frequency multiplied by its level number in the BST.

A binary search tree (BST), also called an ordered or sorted binary tree, is a rooted binary tree whose internal nodes each store a key greater than all the keys in the node's left subtree and less than those in its right subtree.

For example:

Input keys = [ 1, 3, 5 ] 
Frequency = [ 3, 10, 7 ] 

All the unique BST possible from the given keys are: 

Among all these possible BST, the minimum cost is obtained from the below BST: 

Cost = 1 * (freq of 3) + 2 * (freq of 1) + 2 * (freq of 5) = 30 
where 1 is the level of node 3, 2 is the level of the node 1 and node 5. 
Try solving now
03
Round
Easy
Face to Face
Duration50 minutes
Interview date5 Nov 2021
Coding problem2

This round was also coding round

1. Isomorphic Trees

Easy
32m average time
67% success
0/40
Asked in companies
MicrosoftInnovaccerAmazon

You are given two arbitrary binary trees. You need to find if both trees are isomorphic or not.

Two binary trees are said to be isomorphic with each other, if one of the trees can be obtained from the other, by performing the following operation any number of times:

Choose a node of the tree, swap its left and right subtree i.e the left subtree will become the right one, and vice versa.
Note:
1. A binary tree is a tree in which each node has at most two children.   

2. The left subtree of a node, is the tree in which the left child of the node is the root of that tree, and the same holds for the right subtree.

3. The given operation can be performed on any node at any level of the given trees.  

4. Two empty trees are also said to be isomorphic.
Try solving now

2. Largest Distance Between Two Nodes In A Tree

Moderate
15m average time
85% success
0/80
Asked in companies
SamsungInnovaccerMicrosoft

You are given an arbitrary unweighted rooted tree which consists of N nodes, 0 to N - 1. Your task is to find the largest distance between two nodes in the tree.

The distance between two nodes is the number of edges in a path between the nodes (there will always be a unique path between any pair of nodes since it is a tree).

Note :
Use zero-based indexing for the nodes.

The tree is always rooted at 0.
Problem approach

This using Recursion technique in a optimized way.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
SDE - 1
3 rounds | 4 problems
Interviewed by Piramal Group
1376 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6451 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7874 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9973 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4310 views
1 comments
0 upvotes