Standard Template Library : An Introduction

What is the Standard Template Library(STL) ? The Standard Template Library (STL) is a software library for the C++ programming language. It provides four components called containers, iterators, algorithms and functional. STL library lies in the std namespace. Why do we need to use the STL? 1. There is no use in inventing a wheel that has been in presence for … Continue reading Standard Template Library : An Introduction

Numbers and recipes at Codenmath.com

A much awaited day, a long lost dream, finally comes to life with codenmath.com, a wish I had for 9 years now; has awaken only to become a reality. At last a place where I can share all my knowledge, of whatever I have. A belly that has been so full of words will finally … Continue reading Numbers and recipes at Codenmath.com

2. Swap bits

Question : Given a number and 2 indices return the number after swapping bits present at those indices. Method-1 : Brute-Force We can swap bits by following the given steps :- 1. Using bitmasks to extract the ith and jth bits. 2. Save the extracted bits to some local variables. 3. Write the jth  bit to … Continue reading 2. Swap bits

1. Parity of a Word

Question : Compute the parity of a 64-bit word. Parity of a number refers to whether it contains an odd or an even number of 1's in its binary representation. The parity of a number is 1 if it contains odd number of 1's, else 0. Method-1 : Brute Force We can iteratively test the … Continue reading 1. Parity of a Word

A series on Programming Interview Questions

I have decided to write complete solutions and analysis of the questions that are frequently asked in programming interviews at major tech. companies for the position of Software Engineer/Software Engineering Intern. This series will contain exhaustive list of solutions for all the problems posed in The Elements Of Programming Interviews, I will also maintain a Github … Continue reading A series on Programming Interview Questions

pyDelhi Conference- An Affair with Python

Hey folks, Did you just lose out on an opportunity to be a part of the pyDelhi conference? Come let's have a look at it through my lens. March 5th, 2016 was a much awaited day for me as I attended my first developer's conference, the Pydelhi Conference. It took place in JNU amidst the beautiful lush green, … Continue reading pyDelhi Conference- An Affair with Python

Learning the Bootstrap Framework

I would suggest you to go through the following resources in order to get yourself acquainted with Bootstrap Read this StackOverFlow entry of the question "What is bootstrap". Microsoft: DEV203x Introduction to Bootstrap :- This course is extremely beginner friendly, Christopher Harrison would walk you through all the basic elements of the framework like Page … Continue reading Learning the Bootstrap Framework