Filter interviews by
I applied via Company Website and was interviewed before May 2023. There were 2 interview rounds.
Standard task to assess skill set
Invert a given binary tree by swapping left and right child nodes recursively.
Recursively swap left and right child nodes of each node in the binary tree.
Start from the root node and swap its left and right child nodes.
Then, recursively swap the left and right child nodes of the left and right child nodes of the root node.
Repeat the process until all nodes have been swapped.
Return the inverted binary tree.
Trees are a type of graph with a hierarchical structure. Graphs are a collection of nodes and edges.
Trees have a single root node, while graphs can have multiple disconnected nodes.
Traversal of trees can be done using depth-first or breadth-first search algorithms.
Traversal of graphs can be done using various algorithms like Dijkstra's algorithm, Bellman-Ford algorithm, etc.
Top trending discussions
based on 10 interviews
Interview experience
based on 46 reviews
Rating in categories
Graphic Designer
53
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Graphic Designer
16
salaries
| ₹0 L/yr - ₹0 L/yr |
Machine Learning Engineer
14
salaries
| ₹0 L/yr - ₹0 L/yr |
Image Editor
7
salaries
| ₹0 L/yr - ₹0 L/yr |
Data Analyst
6
salaries
| ₹0 L/yr - ₹0 L/yr |
Myntra
Flipkart
Paytm
Snapdeal