Author: Anupam Srivastava

Maximum Subarray 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 sums. To find the maximum...

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 sunshine staying home to watch...

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 I think it is because...

C++Traits 0

C++ Traits

‘C++ Traits’ is an idiom that allows a great level of abstraction, normally possible only by a combination of inheritance and composition, all at compile time. It allows a class to use any object by relying on its traits, i.e., functions and member variables exposed by that object. What C++...

log4cxx 0

Installing log4cxx on MSYS2/Mingw-w64

[whohit]installing-log4cxx-on-msys2mingw-w64[/whohit] In my previous post, I gave the rather simple steps to install MSYS2/Mingw-w64. Now I will tell you how to install a custom library, specifically log4cxx. Before starting, lets acknowledge that there are other libraries that might fit your logging needs. The installation steps will be similar, though here...