`

Blog

Don't take the post dates on this page as a measure of how often I blog. I update my Books page and Euler page quite often.

HackerRank: Swap Nodes

Posted: 12 February 2019

This question was pretty involved. I never knew that implementing a tree was this hard in C++. In addition to that, I refreshed my knowledge on the various traversals and realized that I’ve totally forgotten about each type of traversal. Once you get the tree data structure right, the question...

First Post of 2019

Posted: 8 February 2019

First post of 2019 in February instead of January! Well, that’s not too bad. I was really busy in January and did not carve the time out to do a review. This is not an excuse though. I just did not try hard enough. This post will be about reviewing...

2019 Books

Posted: 8 February 2019

21 Lessons for the 21st Century - Yuval Noah Harari A Gentleman in Moscow - Amor Towles A Wild Sheep Chase - Haruki Murakami Clean Architecture - Robert C. Martin The Future of Capitalism - Paul Collier Structures - J. E. Gordon Refer to First Post of 2019 for my...

HackerRank: ACM ICPC Team

Posted: 24 November 2018

Starting to do HackerRank again. The objective is to do a small problem each day at least, with the option of spilling over to the next day if it is too hard. This question is really simple. N is less than 500, and 500C2 is in the order of O(N^2)....

Google Code Jam Round H

Posted: 18 November 2018

It’s the last Code Jam of the year. I wanted to take part in the previous ones but didn’t make the time to do it. At least I managed to do the last one. Performance was really bad though, only managed to finish the first 2 questions - in a...