i
BYJU'S
Filter interviews by
I applied via campus placement at National Institute of Technology (NIT), Durgapur and was interviewed in Sep 2022. There were 3 interview rounds.
1 DP question, 1 simple integer manipulation
Find the 4th smallest element in a Binary Search Tree.
Traverse the BST in-order and keep track of the count of visited nodes.
When the count reaches 4, return the current node's value.
If the BST has less than 4 nodes, return null or throw an exception.
Find maximum distinct elements in every sliding window of size k.
Create a hash table to store the frequency of each element in the current window.
Use two pointers to maintain the current window and slide it over the array.
Update the hash table for each new element in the window and remove the old element.
Keep track of the maximum number of distinct elements seen so far.
Repeat until all windows of size k have been proce
Merge two sorted linked lists
Create a new linked list to store the merged list
Compare the first nodes of both lists and add the smaller one to the new list
Move the pointer of the added node to the next node
Repeat until one of the lists is empty
Add the remaining nodes of the non-empty list to the new list
Top trending discussions
based on 5 reviews
Rating in categories
Business Development Associate
11.6k
salaries
| ₹3 L/yr - ₹10 L/yr |
Business Development Manager
4k
salaries
| ₹5.8 L/yr - ₹16.7 L/yr |
Business Development Executive
3.3k
salaries
| ₹1 L/yr - ₹8 L/yr |
Senior Business Development Associate
3k
salaries
| ₹4 L/yr - ₹11 L/yr |
BDA
2.3k
salaries
| ₹1 L/yr - ₹10 L/yr |
Unacademy
Vedantu
Toppr
Whitehat jr