Filter interviews by
I applied via Referral and was interviewed in Dec 2021. There was 1 interview round.
The question asks to find all the pairs present in an array of strings.
Iterate through the array and compare each element with all other elements to find pairs.
Store the pairs in a separate array or data structure.
Consider the order of elements in pairs, i.e., (A, B) is different from (B, A).
The number of steps required to reach the top of a staircase of length n can be calculated using dynamic programming.
Use dynamic programming to solve the problem
Create an array to store the number of steps required for each position
Initialize the first two positions with 1 and 2
Iterate through the remaining positions and calculate the number of steps based on the previous two positions
Return the number of steps require
Print the left view of a binary tree
Traverse the tree in pre-order traversal
Print the first node encountered at each level
Maintain a level variable to keep track of current level
Recursively traverse left subtree first
Print the leftmost node of each level using BFS.
Implement BFS algorithm to traverse the tree level by level.
Keep track of the leftmost node of each level.
Print the leftmost node of each level after traversal is complete.
Top trending discussions
I applied via Walk-in and was interviewed in Dec 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before Jul 2021. There were 3 interview rounds.
Convenience power, Patience
Final assignment to complete
I applied via Naukri.com and was interviewed in May 2021. There were 4 interview rounds.
Quick sort is a divide and conquer algorithm that sorts the array by selecting a pivot element and partitioning the other elements around it. Merge sort is also a divide and conquer algorithm that divides the array into two halves, sorts them separately and then merges them.
Quick sort has an average time complexity of O(n log n) while merge sort has a time complexity of O(n log n) in all cases.
Quick sort is an in-place...
System design for Naukri.com platform
Identify user requirements and design the system architecture accordingly
Use scalable and reliable technologies for high traffic handling
Implement features like job search, job posting, resume upload, etc.
Ensure data security and privacy of users
Integrate with third-party services like payment gateways, social media platforms, etc.
Highest sum of contiguous subarray in an array
Use Kadane's algorithm to find the maximum sum subarray
Initialize max_so_far and max_ending_here to 0
Loop through the array and update max_ending_here and max_so_far
Return max_so_far as the highest subset sum subarray
I applied via Naukri.com and was interviewed in May 2021. There were 3 interview rounds.
Add two linked lists and return the sum as a linked list.
Traverse both linked lists and add the corresponding nodes.
Handle carry over while adding nodes.
Create a new linked list to store the sum and return it.
Quick sort is faster but unstable, while merge sort is slower but stable.
Quick sort uses a pivot element to divide the array into two parts and recursively sorts them.
Merge sort divides the array into two halves, sorts them separately, and then merges them.
Quick sort has an average time complexity of O(n log n), while merge sort has a time complexity of O(n log n) in all cases.
Quick sort is not stable, meaning that the...
I applied via Campus Placement and was interviewed in Jun 2021. There were 3 interview rounds.
I applied via Walk-in and was interviewed in Dec 2021. There was 1 interview round.
Software Engineer
13
salaries
| ₹6 L/yr - ₹7.5 L/yr |
Software Developer
5
salaries
| ₹6 L/yr - ₹16.2 L/yr |
Software Engineer II
5
salaries
| ₹7 L/yr - ₹10 L/yr |
HR Manager
4
salaries
| ₹8.5 L/yr - ₹10.5 L/yr |
Graphic Designer
4
salaries
| ₹7.2 L/yr - ₹8.6 L/yr |
Udaan
Swiggy
CARS24
BlackBuck