Which can never be the last day(s) of the century?

Which can never be the last day(s) of the century? You have to tell which of the seven day or days can never be the last of any century. You can consider 1 January 0001 to be a Monday for reference. After making a decent attempt yourself, scroll below for the answer.     To answer … Continue reading Which can never be the last day(s) of the century?


Hedge Funds v/s Mutual Funds

Recent efforts by the Indian government to weed out black money from the economy and increase the tax base have called for a paradigm shift in the way people in India choose to save their money. The pumping out of cash from the economy has brought the citizen to a point where he is considering … Continue reading Hedge Funds v/s Mutual Funds

Invert a Binary Tree

What makes this question special is this tweet. https://twitter.com/mxcl/status/608682016205344768?lang=en He questions the interview process, I am with him. But whatever it is, it is. Question : Invert a binary tree. Return the root of the inverted tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 … Continue reading Invert a Binary Tree

Data structures and algorithms practice resources

Data Structure and Algorithms resource guide.


Here are the sites I have experience with and my thoughts

  • LeetCode is excellent because there are many problems and explanations. Furthermore the problems without explanations have answers and commented solutions in the discussion boards. It is the best online judge in my (limited) experience.
  • Code Wars is fun and great for learning a specific language and its features, i.e. JavaScript. But I did not find it as valuable for algorithms.
  • Cracking the Coding Interview has many questions and detailed answers in Java.
  • Data Structures and Algorithms Made Easy in Java is excellent. Sure there are many, many, many typos. But it has so many code samples for each of the data structures, explanations from worse (brute force) to best (optimized) along with advantages and disadvantages of the many possible solutions.

An honorable mention goes to Free Code Camp. The first time I ever had fun solving code challenges…

View original post 35 more words

Step by step Kaggle competition tutorial

A clean and concise guide to Data Science.


Kaggle is a Data Science community where thousands of Data Scientists compete to solve complex data problems.

In this article we are going to see how to go through a Kaggle competition step by step.

The contest explored here is the San Francisco Crime Classification contest. The goal is to classify a crime occurrence knowing the time and place it happened.

Screenshot from 2016-04-10 10:06:15.png

View original post 916 more words

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