$ random stuff
├── my bookshelf
├── resources
└── quotes
└── about me
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.
Problem Statement
Given an input array, produce the following output array.....Continue reading → programming interview merge sort sort java code
Merge two sorted linked lists and return it as a new list.1. The new list should be made by splicing together the nodes of the first two lists.
It's an easy problem in Leetcode for practicing linked list. It's similar to the merge step of the Merge sort. ..Continue reading → programming leetcode code
Continue reading → programming leetcode code
Imagine a sunset, with a tired sun sinking over a meadow. The chirping of birds steals your attention as they return to their homes. And while the sun disappears, you sink back and relish your sourrounding.
Well the sunset is beautiful because it's obvious to your eyes. Similarly programming is beautiful for those who enjoy it. Below is the poem which which eulogises lisp programming language, but it may be bland for those who have no experience with lisp...Continue reading → programming general