**Problem link:** http://www.geeksforgeeks.org/boundary-traversal-of-binary-tree/

**Problem Statement:**

Given a binary tree, print boundary nodes of the binary tree Anti-Clockwise starting from the root.

Continue reading

[TopCoder, ProjectEuler, HackerRank, CodeChef, CodeForces, InterviewSites]

**Problem link:** http://www.geeksforgeeks.org/boundary-traversal-of-binary-tree/

**Problem Statement:**

Given a binary tree, print boundary nodes of the binary tree Anti-Clockwise starting from the root.

Continue reading

Advertisements

**Problem link:** http://www.codechef.com/AUG13/problems/LELEMON

**Problem Statement:**

Little Elephant likes lemonade.

When Little Elephant visits any room, he finds the bottle of the lemonade in that room that contains the greatest number of litres of lemonade and drinks it all.

There are n rooms (numbered from 0 to n-1), each contains bottles. Each bottle has a volume (in litres). The first room visited by Little Elephant was th, the second th, …, the m-th th room. Note that Little Elephant may visit a room more than once.

Find for Little Elephant the total volume of lemonade he has drunk.

Continue reading

**Problem link:** http://projecteuler.net/problem=2

**Problem Statement:**

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

Continue reading

## Recent Comments