life is too short for a diary



Posts Tagged “sort”

4 min read

Recursively sort a array

I recently came across a simple telephonic interview problem. The problem was to sort an array recursively. But even numbers need to be placed before odd numbers. At first glance it was obvious that it was a simple case of implementation of merge sort...


Continue reading → programming interview merge sort sort java code