Counting Sort

Counting sort is a nice in-place sorting algorithm that we can use for sorting instantly. (This is mostly used for competitive programming.) What I meant by this is, we can use counting sort when we are getting the input. This will not get any additional cost for us, and really good technique for using in-place sorting. I’ll get there after explaining the algorithm. ...

February 1, 2017 · 4 min · 737 words

Factorizing a Number

Before starting- What is Prime Factorization ? What is a Prime number ? If you are curious about these please checkout this link before proceed because I will not explain them here :) ...

November 20, 2016 · 6 min · 1119 words

Kadane's Algorithm

What we will learn today is, how to find the , in optimal solution. First, let’s clarify the goal a bit. ...

September 18, 2016 · 4 min · 760 words