Given a binary tree, how would you set the keys/values of all the nodes and their child pointers to null. No language restriction. Do it iteratively in O(N) time with O(1) space complexity where N is the number of nodes in the tree. Other Details: - Tree is just a regular Binary Tree and doesn't have the BST property. - It is not guaranteed to be balanced. - You may do whatever you want to the tree however, you must ensure that all the nodes in the tree and their left/right pointers are set to null.
MISSING VALUE Interview Questions
6,576,714 interview questions shared by candidates
what do you think is the most important part of sales
Qual seu objetivo na empresa?
Do you have a valid DL?
How do you prioritize your workload? What skills do you think are important for this role? Tell me about your current job, what salary are you looking for?
How you can manage or handle the work pressure.
(over the phone) How to sort an array with millions of entry on a computer with low memory
WAP to find and print second largest digit in the given number? ( without using arrays, functions and using only one loop).
Write a program to print series. 6,15,35,77....
Do you work as a team member
Viewing 4281 - 4290 interview questions