Monthly Archives: August 2012

Lowest Common Ancestor of a Binary Tree

Problem:Find the lowest common ancestor of two given nodes in the binary tree. Solution:

Posted in Trees | Leave a comment

Palindrome Number

Problem: Check whether given number is a palindrome or not. Let’s do it without extra space. Solution:

Posted in Arrays | Leave a comment