After the prolonged release of 2.0, I promised to get back to shorter release cycles. So, despite the summer holidays :) , here it is. I’ll keep this post short too. 17 more words
2 days, 18 hours ago
Given a string , find the number of “unordered anagrammatic pairs” of substrings.
First line contains , the number of testcases. Each testcase consists of string in one line. 243 more words
1 week, 1 day ago
Stacks are a type of container designed to operate in a LIFO context (last-in first-out), where elements are inserted and extracted only from one end of the container. 271 more words
1 week, 3 days ago
Arrays in C++ have a number of drawbacks that make them inconvenient to use:
1 week, 4 days ago
Back in 2008, an old friend challenged me with a programming puzzle, when we both attended a wedding. He later gave a solution in Python. Comparing with my C++ solution, the Python one has about half the code lines. 1,825 more words
1 week, 5 days ago
Previously, I have blogged about SQL CE and how cool it is to use with .NET and Entity Framework. Now in VS2012 it was very simple to use. 303 more words
1 week, 6 days ago
Binary search is one of the fundamental algorithms in computer science. and an effective algorithm as compared to linear search .
Binary search algorithm in C++ relies on a divide and conquer strategy to find a value within an already-sorted collection. 647 more words
2 weeks ago