Posts
An Interesting Exercise in Dynamic Programming
Posted on:May 8, 2016Given an array of building heights (with unit width), calculate the area of the largest rectangle that “fits” within these buildings. For…
0-1 Knapsack Problem in Python
Posted on:April 22, 2016The 0-1 Knapsack problem is a variation on the knapsack problem with one condition: there is only one copy of each item. You may choose to…
Iterative Tree Traversals in Python
Posted on:April 21, 2016Tree traversals are most naturally expressed in recursion, but iterative versions are cool too, plus they take only O(1) space. Inorder…
Jekyll Variable in SCSS Files
Posted on:April 16, 2016You can use Jekyll site variables in top-level SCSS files. For example: {% raw %}$baseurl: '{{ site. baseurl }}'; {% endraw %} @import…
Custom Liquid Tags
Posted on:March 30, 2016Coming back to Jekyll from Hugo, I’d grown accustomed to shortcodes, which are awesome to keep your Markdown source as HTML-free as possible.…
Data Structures in TypeScript
Posted on:March 28, 2016Took some time off this weekend to learn some TypeScript, and reimplemented some data structures as practice. I don’t think I’ll continue to…
Migrating to Visual Studio Code
Posted on:March 26, 2016I’ve been testing out Visual Studio Code for writing Node stuff, and I really like what I’m seeing so far. I’d like to confess that 99. 9% of…
Exposing React Performance Tools in the Browser Console
Posted on:March 25, 2016The React docs on Performance Tools is quite lacking as to how it should be used, so I had to do some digging around to figure out how it…