Topic — Add New » Posts Last Poster Freshness
IBM Interview Question for Software Engineer/Developer (Fresher) about Trees 2 kartik 1 year

Write the pseudocode and C++/Java code to mirror a binary tree.

IBM
Amazon Interview Question for Software Engineer/Developer about Trees 2 kartik 1 year

Written-Qn-2) Write complete working code (only the function) to traverse a binary tree in ZigZag order.

void printTree(Node *root)

Example:

      1
    /   \
  2        3
 / \       / \
4   5    6   7

O/P: 1 3 2 4 5 6 7
Amazon
[closed] Amazon Interview Question for Software Engineer/Developer about Trees 2 Shekhu 1 year

construct tree from the given ancestor matrix, optimize your solution.

Amazon
Adobe Interview Question for Software Engineer/Developer about Trees 3 kartik 1 year

Min and max nodes of a quad tree

Adobe
Microsoft Interview Question for Software Engineer/Developer (Fresher) about Trees 2 1 year

AVL tree vs Red Black Tree

Microsoft
Interview Question for Software Engineer/Developer (Fresher) about Trees 1 tushar 2 years

basic questions BST and AVL trees

Amazon Interview Question for Software Engineer/Developer (2-5 Years) about Linked Lists, Trees 3 Kapil 2 years

given a binary tree, convert it to doubly linked list. if you are going for a company interview, then read the solution before interview.

Amazon
Microsoft Interview Question for Software Engineer/Developer about Trees 2 Shekhu 2 years

a function to get the longest path in a given binary tree.

Microsoft
Negation of BST 2 2 years

Given a BST and the elements of the tree are negated , rearrange the tree such that final output is also a BST

[closed] Maximum width of a binary tree 3 geeksforgeeks 2 years

Say you have a binary tree which looks like this

         A
     /      \
    B        C
   / \      / \
  D  E   F  G
  /        /
 H       I

Assume A is level 1. So here you can see that the width at level 3 = 4, which is the max width of the tree. So given a binary tree, find the max width of the tree.This is your function:

public int findWidth(Node root)

and public Node{
String val;
Node getLeft();
Node getRight();
}
Comparing two trees 3 2 years

Hello,

I have a requirement to compare two trees. Anz algorithm for this???

Thanks in Advance!!

IBM Interview Question for Software Engineer/Developer (Fresher) about Algorithms, Trees 5 Shekhu 2 years

Write an algorithm to create the mirror image of a binary tree

IBM
Amazon Interview Question for Software Engineer/Developer (0 - 2 Years) about Trees 2 2 years

http://geeksforgeeks.org/?p=4358
http://geeksforgeeks.org/?p=4386

Amazon
tree from array 2 2 years

construct a balanced binary search tree from a sorted array.

Google Interview Question for Software Engineer/Developer about Trees 2 kartik 2 years

Given a binary tree, programmatically you need to prove it is a binary search tree.

Google
[closed] Given a binary tree, convert it into a binary search tree 2 Sandeep 2 years

Given a binary tree, convert it into a binary search tree. Is it possible to do this in-place without using any extra memory ?

Inorder traversal without using Stack or recursion 2 Sandeep 2 years

Can anybody suggest/provide me the algorithm of inorder traversal without stack/recursion??