Filter interviews by
3 DSA questions (medium-hard difficulty level)
Top trending discussions
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 4 Oct 2023
I applied via campus placement at Lovely Professional University (LPU) and was interviewed in Sep 2023. There were 4 interview rounds.
It was aptitude + oops concpets mcqs
This round had 3 dsa questions (tree, linked list, array) and 1 output based answer(bst)
This was another coding round of higher difficulty (linked list, tree)
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:
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...
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...
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.
posted on 16 Sep 2021
I was interviewed in Nov 2020.
Round duration - 40 minutes
Round difficulty - Medium
It was early in the morning around 8:00AM-8:40AM. Platform used was hackerrank and the questions asked were of moderate level.
Given an array 'ARR' of size 'N', determine if there exists a triplet (i, j, k) satisfying the conditions: 0 < i , i + 1 < j , j + 1 < k and k < N...
Round duration - 15 minutes
Round difficulty - Easy
It was in the evening around 4;00PM-4:20PM. This round was very interesting as it focuses more about your personality rather than your knowledge which has been already checked in previous rounds.
Tip 1 : Practice aptitude as much as possible.
Tip 2 : Practice more and more questions related to your skills.
Tip 3 : Proper revision is must.
Tip 1 : It should not be too long or too short.
Tip 2 : Each skill and project should be reflected properly in your resume.
posted on 16 Sep 2021
I was interviewed before Sep 2020.
Round duration - 90 minutes
Round difficulty - Medium
They share doc file link which consist of 5 programming questions
You are given a string of length N
. Your task is to reverse the string word by word. The input may contain multiple spaces between words and may have leading o...
Given an integer N
, determine if it is a member of the Fibonacci series. Return true
if the number is a member of the Fibonacci series, otherwise return false
.
Given an array ARR
of N
elements, your task is to find the maximum difference between any two elements in ARR
.
If the maximum difference is even, print EVEN; if it is...
We will iterate over ARR and find the MAX and MIN of the ARR. And if the MAX - MIN is odd the return “ODD” else return "EVEN".
The algorithm will be-
O(1).
Since constant space is used.
Time Complexity: O(n)Explanation:O(N), where N ...
Determine the remainder when a given number, 'N' in the form of a string, is divided by 11.
The first line contains an integer 'T' denoting the numb...
Round duration - 60 minutes
Round difficulty - Medium
In this round interviewer asked me to solve 3 programming questions.
Selection sort is a sorting technique that works by repeatedly finding the minimum element (considering ascending order) from the unsorted part and placing it at the beginning of ...
Selection sort is a standard sorting algorithm that uses nested loops to find all the minimum elements in the array in each iteration and swap them with the starting element of the unsorted region of the array.
Steps :
Given a string, your task is to determine if it is a palindrome considering only alphanumeric characters.
The input is a single string without any leading or trailing...
Display the star pattern for a given positive integer N.
N = 4
*
***
*****
*******
The dots in the image represent spaces. Al...
Round duration - 60 minutes
Round difficulty - Easy
This was the HR round. They asked me simple HR questions and 1 coding question.
Create a program that counts and prints the total number of specific character types from user input. Specifically, you need to count lowercase English alphabets, numeric digi...
Tip 1 : Learn how to optimize the program. This will really help you during RSL interview.
Tip 2 : Study all previously asked question by this company and try to find out best solution for it.
Tip 3 : Keep resume simple and authenticated.
Tip 4 : Practice how to handrun the program.
Tip 1 : Resume should be authenticated. You should be able to answer all things on resume.
Tip 2 : Keep it simple.
Tip 3 : Having internship experience will help.
posted on 18 Oct 2023
I applied via Campus Placement and was interviewed in Apr 2023. There were 2 interview rounds.
Aptitude test consisted of around 45 MCQs from basic topics like C, C++, OOPS
2nd round had 3 medium level (Leetcode) questions and 1 output question: 1. Level order traversal, 2. count zeros(not sure), 3. Linked List traversal related.
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.
posted on 19 May 2022
I was interviewed in Aug 2021.
Round duration - 75 minutes
Round difficulty - Medium
Round held at 12 noon. There were 2 interviewers
You are provided with an array of distinct elements, and your task is to rearrange the array elements in a zig-zag manner. Specifically, for every odd index i
, the element ARR[...
You are given an arbitrary binary tree consisting of N
nodes where each node is associated with an integer value from 1 to 9. Each root-to-leaf path in the tree represents a ...
Round duration - 120 minutes
Round difficulty - Easy
Round held at 4pm. There were 2 interviewers
You are provided with a linked list containing 'N' nodes and an integer 'K'. The task is to reverse the linked list in groups of size K, which means reversing the nodes ...
Given an arbitrary binary tree, a specified node within the tree, and an integer 'K', find all nodes that are exactly 'K' distance away from the specified node. Retur...
Tip 1 : For every topic of DSA do at least 30 question so that you get good grasp on each topic
Tip 2 : Must go through OOPS, DBMS in details as they are very much asked in interview
Tip 3 : Also you should have complete knowledge of the technology used in your personal projects.
Tip 1 : Your resume must be of 1 page only
Tip 2 : You must have projects in your resume along with the practical impact it is making
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:
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...
Transform a string representing a valid Prefix expression, which may contain operators '+', '-', '*', '/', and uppercase letters, into its corresponding Infix expression.
Tip 1 : Atleast 1 project
Tip 2 : Practice data structures
Tip 1 : Keep it short
Tip 2 : Don't put false information
based on 1 interview
Interview experience
Software Engineer
151
salaries
| ₹5 L/yr - ₹20 L/yr |
Senior Software Engineer
27
salaries
| ₹15 L/yr - ₹31 L/yr |
Business Analyst
22
salaries
| ₹6 L/yr - ₹18.2 L/yr |
Web Developer
15
salaries
| ₹8 L/yr - ₹20 L/yr |
Software Developer
14
salaries
| ₹8 L/yr - ₹21 L/yr |
AuthBridge Research Services
QUICK HEAL TECHNOLOGIES
TCS
Happiest Minds Technologies