The second was given two nodes of a binary tree find the
closest ancestor of the two nodes.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More General Aptitude Interview Questions

am going to write iocl exam can u pls send me the question paper

0 Answers   Wipro,


If A is traveling at 72 km per hour on a highway. B is traveling at a speed of 25 meters per second on a highway. What is the difference in their speeds in m/sec.

4 Answers   Accenture,


Every day a driver comes to pick up a man at his office at 6pm. One day the man gets free early and rather than waiting for the driver, he starts walking for home at 4:30pm. The man meets the driver on the way and then reaches home 30minutes earlier than usual. What is the usual time that man takes to reach home from the office?

0 Answers   CGI,


if length of a rectangle is incr by 20% and width is decr by 20% then area

5 Answers   ASD Lab, KPSC Karnataka Public Service Corporation, Math Olympiad, Time, Verifone,


In 1991, was the number of people in City A three times greater then the number of people in City B? 1) In 1991, there were approximately 1.1 million more people in City A than in City B. 2) In 1991, the 300,000 Catholics in City A made up 20% of its population, and the 141,000 Buddhists in City B made up 30% of its population. a) if statement (1) ALONE is sufficient, but statement (2) alone is not sufficient to answer the question. b) if statement (2) ALONE is sufficient, but statement (1) alone is not sufficient to answer the question. c) if BOTH statements (1) and (2) TOGETHER are sufficient to answer the question asked, but NEITHER statement ALONE is sufficient. d) if EACH statement ALONE is sufficient to answer the question asked. e) if statements (1) and (2) TOGETHER are NOT sufficient to answer the question asked, and additional data specific to the problem are needed.

4 Answers   Wipro,






If a triangle has a base B and the altitude of the triangle is twice the base, then the area of the triangle is

6 Answers   TCS,


in how many ways can a lock be opened if that lock has three digit number lock if the last digit is 9 and sum of the first two digits is less than or equal to the last digit. numbers are from 0-9

0 Answers   Accenture,


12 marbles, 4 blue, 4 green, 4 red. What no of time you can draw that both color are same at once. When you pick 2 at once.

3 Answers   3D PLM,


If on an item a shop gives 25% discount, they earn 25% profit. If they now give 10% discount then what is the profit percentage.

10 Answers  


The owner of a hobby store needed to calculate the percentage of customers who purchase wood glue. Upon completing his survey, he noticed that 60% of the people that entered his store purchased an item. Of those customers, 15 percent purchased wood glue. What percent of the people that entered the store purchased wood glue?

7 Answers   Accenture, CTS, Infosys, Wipro,


Find min value of fn: |-5-x| + |2-x|+|6-x|+10-x|; where x is an integer 0 17 23 19

11 Answers   Accounting, Cap Gemini,


Ben can have a piece of work done in 8 days, Joe can work three times faster than the Ben, Ram can work five times faster than Ben. How many days will they take to do the work together ?

3 Answers  


Categories