It took me almost two months to find a courage to implement quicksort. And here we are. This algorithm is a nightmare. It’s pretty easy to grasp the concept, but it’s extremely difficult to implement.