### python headers are required to build mercurial error while installing

OK, I have been biking mercurial for a while and wanted to upgrade to the latest version

In the process of that, I got the error **python headers are required to build mercurial**

Here is the fix.

Just add

sudo apt-get install build-essential gcc python-dev

which it was missing.

For re-installation follow the steps listed on https://help.ubuntu.com/community/Mercurial

### See how you would solve these known algorithm problems

Array reversal in RecurrsionFind the first occurence of number in the sorted array

testing k complementary pairs algorithm with junit

Implementing tokenizer and adding tokens to the linked list

Kadane’s algorithm in C – Dynamic Programming

Java solution for checking anagram strings – tell if phrases are anagrams

Check if there are three numbers a, b, c giving a total T from array A

Find the pairs that makes K Complementary in the given array java solution

String Ordered Permutation Algorithm Problem

Find K Complementary numbers from array Java implementation

## Kobe Subramaniam

thanks for relieving me.

## gullele

I am glad you are relieved

## ajing

Thanks mate.

## Cristina

Thank you. This worked just fine :).