life is too short for a diary



Posts Tagged: ruby

Fix jekyll jolt plugin using monkey patching

My existing `jekyll` website started failing newer jekyll version: `4.4.1`. I had to do a **monkey patch** to resolve this error...

Continue reading → jekyll ruby monkey-patching



Manage Ruby Version using rbenv

I usually build my `jekyll` website using `bundle install`. However I started getting following build error...

Continue reading → ruby jekyll



Find kth largest element in an array

The other day I stumble upon the question to find the kth 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 → algorithm ruby heap max-heap projects