Evgeniy Malov
Build cartesian tree with Haskell in O(N^2), O(N*logN) and O(N) time
https://gist.github.com/evgenii-malov/2ac87e45a8bdc5b581368d3162159c0a ... https://www.youtube.com/watch?v=E8Fxtpr24Zg
587809395 Bytes