Deja Vu Random notes on coding and stuff..

Solution to Eight Queens problem in Golang

We shall use the recursive backtracking technique for getting all the solutions to the Eight Queens Problem. We shall use two 8x8 arrays, one to store the position of the...

Golang equivalent of Python's bisect_left() and bisect_right()

Today I needed to binary_search on a sorted list of items in Golang. In Python (which remains my favorite language, btw) it was a simple thing to use the...

Input template (Go) for algorithmic competitions

Since I have been playing with Go recently, I decided to use it for the qualification round of Google Code Jam - 2016. Here is the struct I wrote to...

go-hn: command line client for hacker news, written in golang

So, I was in need of a command line client for Hacker News and have been playing with Golang for some time. This weekend, I finally got some spare time...

Git commit message - tips

The seven rules of a great git commit message Separate subject from body with a blank line Limit the subject line to 50 characters Capitalize the subject line Do not...