Author: Anupam Srivastava

Factory pattern 0

Generic Factory in C++

A generic factory is a factory that can register any class type. It is very easy to write because we are allowed to use void pointers.

Usage:

As we are simply casting a void pointer, it is left to the developer to ensure...

0

Maximum Subarray

Problem statement: Find the largest sum that is possible in an array. I.e., find the maximum sub-array. Solution: From the very first this problem looks complicated because of how it is framed. It sounds like we want to find the MAXIMUM from ALL THE POSSIBLE...

The Persistence of Memory by Salvador Dali 0

Limit of time

Ticking away the moments that make up a dull day Fritter and waste the hours in an offhand way. Kicking around on a piece of ground in your home town Waiting for someone or something to show you the way. Tired of lying in the...

Money 0

Money and power

I have not seen this discussed, yet. I had this idea that has given me a lot of perspective in life and has helped to understand why and how our system. Our system is a hierarchy of power. Why is not what is important here, but...