i
MiQ Digital
Filter interviews by
I applied via campus placement at Vellore Institute of Technology (VIT) and was interviewed in Sep 2020. There were 4 interview rounds.
A binary tree with 4 internal nodes has 5 leaf nodes.
A binary tree with n internal nodes has n+1 leaf nodes.
A leaf node is a node with no children.
Count the number of leaf nodes to find the answer.
The number of swaps required to sort an array using bubblesort
Bubble sort compares adjacent elements and swaps them if they are in the wrong order
Count the number of swaps required to sort the given array
The given array requires 19 swaps to be sorted using bubblesort
Given preorder and postorder traversal, find inorder traversal of a binary tree.
The last element of postorder traversal is the root of the tree
Find the root in preorder traversal and divide the tree into left and right subtrees
Recursively find the inorder traversal of left and right subtrees
Combine the inorder traversal of left subtree, root, and inorder traversal of right subtree
Top trending discussions
Software Engineer
29
salaries
| ₹11 L/yr - ₹16 L/yr |
Data Analyst
24
salaries
| ₹6.5 L/yr - ₹17.2 L/yr |
Senior Software Engineer
22
salaries
| ₹22 L/yr - ₹31 L/yr |
Business Analyst
21
salaries
| ₹9 L/yr - ₹14.5 L/yr |
Senior Analyst
21
salaries
| ₹12 L/yr - ₹19 L/yr |
Affle
InMobi
Komli Media
Deloitte Digital