Filter interviews by
I was interviewed in Feb 2021.
Round duration - 90 minutes
Round difficulty - Medium
Timing was 10AM. The platform was quite good.
You are provided with an N * M
sized binary matrix 'MAT' where 'N' denotes the number of rows and 'M' denotes the number of columns. Your t...
Determine the maximum path sum for any path in a given binary tree with 'N' nodes.
Note:
The idea here is to use the recursion. For each node, We can calculate the maximum path sum by keeping track of the following paths:
We then pick the maximum one among them. The root of ev...
Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.
T (number of test cases)
For each test case:
N (siz...
While iterating over the array, check the current element, and if not in the correct place, replace that element with the index of the element which should have come in this place.
Below is the algorithm:
Convert a given infix expression, represented as a string EXP
, into its equivalent postfix expression.
An infix expression is formatted as a op b
where the opera...
We will scan the expression from left to write and if we encounter an operand we will append it to our answer. If we encounter an operator we will pop all the operators with equal or higher precedence and append them to our answer. And push the current operator. In the end, we will empty the stack.
Order of precedence = [ ‘^’, ‘*’ and ‘/’, ‘+’ and ‘-’, ‘(’, ‘)’]
Order of precedence [ link ]
The algorithm will be-
Tip 1 : Do at least 1 project.
Tip 2 : Practice data structure questions.
Tip 3 : Dynamic programming is must.
Tip 1 : Do not put false things.
Tip 2 : Keep it short and direct.
I was interviewed in Feb 2021.
Round duration - 90 minutes
Round difficulty - Medium
Timing was 10AM. The platform was user-friendly.
You are provided with an N * M
sized binary matrix 'MAT' where 'N' denotes the number of rows and 'M' denotes the number of columns. Your t...
Determine the maximum path sum for any path in a given binary tree with 'N' nodes.
Note:
The idea here is to use the recursion. For each node, We can calculate the maximum path sum by keeping track of the following paths:
We then pick the maximum one among them. The root of ev...
Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.
T (number of test cases)
For each test case:
N (siz...
While iterating over the array, check the current element, and if not in the correct place, replace that element with the index of the element which should have come in this place.
Below is the algorithm:
Transform a string representing a valid Prefix expression, which may contain operators '+', '-', '*', '/', and uppercase letters, into its corresponding Infix expression.
The idea is to iterate over the expression from right to left and store the operands in a stack. Here, we are using a stack of strings for storing the operands. Whenever we encounter an operator, pop the top two operands from the stack and convert the expression to its infix form and then push back to the stack.
Tip 1 : Atleast 1 project
Tip 2 : Practice data structures
Tip 1 : Keep it short
Tip 2 : Don't put false information
I was interviewed in Feb 2021.
Round duration - 90 minutes
Round difficulty - Medium
Timing was 10AM. The platform was quite good.
Given an N x M binary matrix 'MAT', where N is the number of rows and M is the number of columns, determine the maximum area of a submatrix consisting entire...
If the height of bars of the histogram is given then the largest area of the histogram can be found. This way in each row, the largest area of bars of the histogram can be found. To get the largest rectangle full of 1’s, update the next row with the previous row and find the largest area under the histogram, i.e. consider each 1’s as filled squares and 0’s with an empty square and consider each row as the base.
Your task is to determine the maximum possible sum of a simple path between any two nodes (possibly the same) in a given binary tree of 'N' nodes with integer values.
For each node there can be four ways that the max path goes through the node:
1. Node only
2. Max path through Left Child + Node
3. Max path through Right Child + Node
4. Max path through Left Child + Node + Max path through Right Child
Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.
T (number of test cases)
For each test case:
N (siz...
This can be easily done by visualizing the problem as a graph. We will have n nodes and an edge directed from node i to node j if the element at i’th index must be present at j’th index in the sorted array.
Transform a string representing a valid Prefix expression, which may contain operators '+', '-', '*', '/', and uppercase letters, into its corresponding Infix expression.
Algorithm for Prefix to Infix:
Read the Prefix expression in reverse order (from right to left)
If the symbol is an operand, then push it onto the Stack
If the symbol is an operator, then pop two operands from the Stack
Create a string by concatenating the two operands and the operator between them.
string = (operand1 + operator + operand2)
And push the resultant string back to Stack
Repeat the above steps until end of Prefix
Tip 1 : Do at least 1 project.
Tip 2 : Practice data structure questions.
Tip 3 : Dynamic programming is must.
Tip 1 : Do not put false things.
Tip 2 : Keep it short and direct.
I was interviewed in Jan 2021.
Round duration - 60 Minutes
Round difficulty - Easy
Given an n x n
matrix mat[n][n]
of integers, find the maximum value of mat[c][d] - mat[a][b]
for all possible indices where c > a
and d > b
.
The first line cont...
Recursively call the function and find the maximum number of the submatrix and update the answer for every element of the matrix.
Algorithm:-
Round duration - 20 Minutes
Round difficulty - Easy
Tip 1 : Try solving Love Babbar 450 Prog questions
Tip 2 : Have a good resume
Tip 3 : Do learn some extra technologies eg. ML/AI
Tip 1 : Do not lie at all
Tip 2 : Have some projects listed
Hike interview questions for designations
posted on 15 Oct 2024
I applied via campus placement at KIIT University, Bhuvaneshwar and was interviewed in Apr 2024. There were 3 interview rounds.
Medium level coding questions on hackerrank ,1:30hr, topic- Array , DP , Matrix , Binary Search
posted on 21 Jul 2024
Was on Hackerrank and good dsa questions asked
posted on 5 Apr 2024
1. Coin change
2. Valid Parenthesis
3. Bipartite graph question
The question involves finding duplicates in an array, validating parentheses, generating random IDs, and determining the maximum number of random IDs that can be generated.
To find duplicates in an array, you can use a hash set to store unique elements and check for duplicates as you iterate through the array.
To validate parentheses, you can use a stack data structure to keep track of opening and closing parentheses.
To ...
I applied via LinkedIn and was interviewed in Mar 2024. There were 4 interview rounds.
The questions were asked from SQL and Python
General Topics - Mostly checking the communication
I was interviewed before May 2016.
I applied via LinkedIn and was interviewed in May 2024. There were 2 interview rounds.
It was normally reasoning question.
Priniting pattern question.
Senior Product Analyst
25
salaries
| ₹23 L/yr - ₹33 L/yr |
Associate Product Manager
12
salaries
| ₹10 L/yr - ₹26.8 L/yr |
Senior Software Engineer
10
salaries
| ₹19.8 L/yr - ₹65 L/yr |
Software Engineer
10
salaries
| ₹12 L/yr - ₹25 L/yr |
Software Developer
8
salaries
| ₹11.6 L/yr - ₹37 L/yr |
Ola Cabs
Flipkart
Paytm
Swiggy