IBM Interview Report
- -1of 1 vote
Answers1) Write a iterative program to calculate factorial of N.
- india.tp.1976 January 20, 2012 in United States
2) what is the order of above program
3) Write a recursive program to calculate factorial of N.
4) what is the order of above program| Report Duplicate | Flag | PURGE
IBM Accountant Algorithm - 0of 0 votes
AnswersWrite a program to find out the height of the tree. Tree can have two node (one is left and right node).
- india.tp.1976 January 21, 2012 in United States
If tree do not have any child, its height will be zero.
What is the order of above program| Report Duplicate | Flag | PURGE
IBM Accountant Algorithm - 2of 2 votes
AnswersWrite a program to find out if the binary tree is balance or not. The tree is balance if the difference between the
- india.tp.1976 January 21, 2012 in United States
left node and right node is equal or less than 1. The above considition is applicable for subtree too..
If tree do not have any child, its height will be zero.
What is the order of above program| Report Duplicate | Flag | PURGE
IBM Accountant Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.