The Exclusive OR (XOR) Explained


I recently ran into a code puzzle; the question asked for the finding the unique element in a list of integers given that every integer appears twice except the single special element.

Reading is not enough


I used to read a lot in the past without practicing what I learnt; that exposed me to a variety of ideas and empowered me to discuss a lot of things. Over time, I found out that I mostly didn't 'know' what I thought I knew.  Yeah I know it sounds somehow but it's really true. True understanding … Continue reading Reading is not enough

Ensuring Integer results in JavaScript


One of the ways JavaScript differs from most programming languages is the absence of integer types.