12 followers

A JavaScript Developer in Tokyo

Subscribe to my newsletter and never miss my upcoming articles

This is a pretty classic problem. You can see it's detailed description in Find Peak Element. The most easy way to solve to this problem is just make...

Introspective sort(introsort) is a hybrid sorting algorithm. It tries to achieve better result by combining quick sort, heap sort and selection sort....

The median of three strategy is used to speed up the the quick sort algorithm. I wrote an article about quick sort before, if you don't familiar with...

In this article, let's try to sovle the leetcode problem Rotate Image. As the problem requires, the operation is very much like a rotation. We can...

In the previous article, we talked about parser combinators. At the end of that article, we also tested our combinators skills by parsing ternary...

A parser is simply a function which takes in a string, does some parsing job, and output the parsing result. For example, below is simple parser...