Deja Vu Random notes on coding and stuff..

golang

gitlab-cli : Interact with Gitlab from the command line, currently focusing on issues

gitlab-cli a cli tool that I have written for interacting with Gitlab. Currently the tool focuses on working with issues for a project. It is written in Go and works...

Poor man's generics in Golang (Go) [or pick your poison]

Golang does not have generics. Period. With that in mind, I just wish to share how I am thinking of implementing generic code. For this example, I am going to...

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...