Print a singly linked list in reverse!

Today’s topic is pretty simple. Let’s print a linked list in reverse. And it is a singly linked list meaning you can only traverse in one direction and not come back. You are only given a pointer to the head. So without further ado, below is the c++ code. Only the important parts are shown. […]

Backward Compatibility!

Backward Compatibility The internet is littered with articles on backward compatibility and why it is important and rants of people who work/use 1970s systems on the same. Well the last sentence there was a pun but people do rant on not being able to use the PS2 games on PS4 and or not being able […]

Basic use of Tuples C++11

Basic use of Tuples in C++11 Tuples are an amazing feature in C++. Tuples are specified in C++11 standard (ISO/IEC 14882:2011), i.e. they are a new introduction in c++11. So if you are more used to traditional c++, tuples will come as a surprise for you. It happened to me as well and I am not that […]

Ranged Switch Case C++

Ranges in C++ Switch Case block Today, we will do something really stupid! Yes, I am talking about the ranged switch case support that is available in C++. In all the commercial/hobby source code that I have seen, implemented and used, rarely have I come across the ranged switch case use. Most of the code […]

Simple Downloader!

I come across this very nice site http://www.dwarkadheeshvastu.com/ which has a collection of excellent MP3s (Devotional Music). I congratulate the maintainer of that site for the excellent collection of texts/mp3s in multiple languages. So the site is more or less static with mp3s arranged inside folders starting from 000.mp3 to the <lastsection>.mp3. And you want to download […]