Filter interviews by
I was interviewed in Oct 2021.
Round duration - 90 minutes
Round difficulty - Hard
They gave around 7 days of time for attending the test.
It had 4 coding questions out of which I solved 2 fully and 2 partially.
Questions were medium-hard and based on DSA.
Given an array 'ARR' of 'N' distinct integers, determine the third largest element in the array.
The first line contains a single integer 'T' representing the numb...
The idea is to sort the array in non-decreasing order, and then return the third element from the back of the array.
The steps are as follows :
O(1)
We are not using any extra space. Thus, the overall space complexity will be O(1).
Time Complexity: O(nlogn)Explan...Implement a wildcard pattern matching algorithm to determine if a given wildcard pattern matches a text string completely.
The wildcard pattern may include the...
We will try to explore all the possibilities using the recursion.
Let’s say we have a recursive function ‘REC’ who has two arguments IDX and IDY where IDX represents the index in the text string and IDY represents the index in pattern string and its return type is boolean. Initially, we will call the rec with IDX = N and IDY = M where N is the size of the text string and M is the size of the patte...
For a given singly linked list, identify if a loop exists and remove it, adjusting the linked list in place. Return the modified linked list.
A...
We are going to have two loops outer-loop and inner-loop
Given two strings STR1
and STR2
, determine the length of their longest common subsequence.
A subsequence is a sequence that can be derived from another sequen...
The basic idea of this approach is to break the original problem into sub-problems. Let us assume we want to find the length of the longest common subsequence of “STR1” and “STR2” whose length is ‘N’ and ‘M’ respectively.
Now, let us define a recursive function
LCS(Int I, int J, string STR1, string STR2)
Which returns the length of the longest common subsequence of string STR1...
Tip 1 : Practice programming daily
Tip 2 : Don't go after development when you are applying as a fresher, focus on DSA and CP.
Tip 3 : Apply for multiple companies.
Tip 1 : Keep it simple in one page
Tip 2 : Use novoresume.com for nice templates
Tip 3 : Mention your projects and experience clearly.
I was interviewed before Mar 2021.
Round duration - 60 Minutes
Round difficulty - Easy
Given a binary tree of integers, return the level order traversal of the binary tree.
The first line contains an integer 'T', representing the number of te...
In the level order traversal, we will be using queue data structure which has the property FIRST IN FIRST OUT that’s why which nodes come first in current level the children of that node will also come first for the next level. So, we visit all the nodes one by one of the current level and push into the queue so that when we will be complete with the current level, then we can start exploring nodes ...
Round duration - 45 minutes
Round difficulty - Easy
Round duration - 60 Minutes
Round difficulty - Medium
Round duration - 60 Minutes
Round difficulty - Medium
You are provided with an array of ‘N’ integers and ‘Q’ queries. Each query requires calculating the maximum subarray sum in a specified range of the array.
The first ...
The key idea is to process the queries as asked. Forgiven ‘l’ and ‘r’ we need to find the maximum sub-array sum from ‘l’ to ‘r’. For this, we can use the Kadane algorithm. To know more about the Kadane algorithm refer to this:-
https://cp-algorithms.com/others/maximum_average_segment.html
Space Complexity: O(1)Explanation:O(1)
We are using constant space to solve this.
Time Complexity...Given an integer array arr
of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.
The first line contains an integer 'T' representing the n...
Use any good sorting algorithm like Merge Sort, Quick Sort or inbuilt sorting function of different languages.
O(1), As we are using constant space.
Time Complexity: O(nlogn)Explanation:O(N*log(N)), where ‘N’ is the size of the array.
We are using inbuilt sort algorithm which has Overall Time Complexity O(N*log(N))
Round duration - 20 Minutes
Round difficulty - Medium
Tip 1 : Prepare DS and Algo
Tip 2 : Prepare Dynamic programming
Tip 1 : Good in DS and algo that will be help in the interview that is very neccassry
Tip 2 : Prepare DBMS
Top trending discussions
I applied via Campus Placement
Question related to operating system and computer network
Traverse all child nodes in a tree data structure
Use depth-first or breadth-first traversal algorithms
Recursively visit each child node starting from the root node
Consider using a stack or queue data structure for traversal
Example: Traverse all nodes in a binary tree
I applied via Walk-in and was interviewed in Nov 2024. There were 2 interview rounds.
1st round is aptitude and pesudocode
I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.
In first round 4 coding question like 1 dsa 2 database and one is api and question is very simple . coding round was conducted in hackerrank
Again same but dsa question and oops concept in deep level
I applied via Recruitment Consulltant and was interviewed in Sep 2024. There were 2 interview rounds.
Basic questions were given..bar graphs,pie charts
Oops concept stands for Object-Oriented Programming concepts which include principles like inheritance, encapsulation, polymorphism, and abstraction.
Oops concept is a programming paradigm that focuses on objects and classes.
It includes principles like inheritance, where a class can inherit properties and behaviors from another class.
Encapsulation is another principle where data is wrapped within a class and can only be...
I applied via Campus Placement
Search for an element in a rotated sorted array
Use binary search to find the pivot point where the array is rotated
Divide the array into two subarrays and perform binary search on the appropriate subarray
Handle cases where the target element is on the left or right side of the pivot
HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a collision occurs and the key-value pairs are stored in a linked list at that inde...
Hash Map is a data structure that stores key-value pairs and uses a hash function to map keys to their corresponding values.
Hash Map uses a hash function to determine the index of the key-value pair in the underlying array.
Collisions can occur when multiple keys hash to the same index, which can be resolved using techniques like chaining or open addressing.
Hash Map typically has a load factor threshold to determine whe...
Interview experience
based on 9 reviews
Rating in categories
Senior Software Engineer
285
salaries
| ₹10.6 L/yr - ₹36 L/yr |
fresher
216
salaries
| ₹1 L/yr - ₹6 L/yr |
Software Engineer
183
salaries
| ₹5.5 L/yr - ₹16.1 L/yr |
Lead Software Engineer
179
salaries
| ₹17.2 L/yr - ₹50 L/yr |
Product Specialist
111
salaries
| ₹5 L/yr - ₹10.9 L/yr |
Zoho
Salesforce
LTIMindtree
TCS