Filter interviews by
I applied via Approached by Company and was interviewed in Nov 2022. There were 2 interview rounds.
Top trending discussions
Medium to Hard Questions
posted on 9 May 2024
I applied via campus placement at Centre for Development of Advanced Computing (CDAC) and was interviewed before Jun 2022. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Jun 2021. There was 1 interview round.
Validate if a binary tree is valid or not
A valid binary tree should not have any duplicate nodes
A valid binary tree should have all left nodes smaller than the parent node and all right nodes greater than the parent node
We can use recursion to traverse the tree and check if it is valid
Reversing a linked list involves changing the direction of the pointers in the list.
Iteratively swap the next and previous pointers of each node in the list
Recursively swap the next and previous pointers of each node in the list
Use a stack to push each node onto the stack and then pop them off in reverse order
Create a new list and iterate through the original list, adding each node to the front of the new list
based on 1 interview
Interview experience
Software Engineer
42
salaries
| ₹2.9 L/yr - ₹13.4 L/yr |
Senior Software Engineer
36
salaries
| ₹7 L/yr - ₹17 L/yr |
Oracle Database Administrator
34
salaries
| ₹3.2 L/yr - ₹13.5 L/yr |
Technical Lead
27
salaries
| ₹8.5 L/yr - ₹25 L/yr |
Junior Software Engineer
18
salaries
| ₹3.2 L/yr - ₹4 L/yr |
TCS
Infosys
Wipro
HCLTech