life is too short for a diary
On This Page
Posts Tagged: ruby
Find kth largest element in an array
largest element in the array. At first glance, I thought the solution was trivial. But later I thought that there are multiple ways to achieve efficient solution...
Continue reading →