How to add/edit a post in your jekyll blog?

This post describes how to make changes to your jekyll blog. It can be done locally, where the github pages repo is local to your machine. Or, changes can also can done directly on github. The preview feature on github while adding a post makes it very easy to verify the format before it goes live in github.io website.

Read More

HashMap in Java

java.lang.HashMap is a very widely used data structure in java to map keys to values. It can provide O(1) access and insertion time. However, HashMap maintains no particular order of the key-values inserted. Here is how it briefly works. A HashMap internally uses an array to provide O(1) access time. Each location in this array provides a bucket. A bucket can store multiple (key,value) pairs. To describe briefly, here is what happens when a (key,value) pair is inserted.

Read More