Monthly Archives: July 2019

Leetcode 46: Permutations

The obvious way to solve this is to repeatedly call next_permutation() from the standard library. Another way to solve it is to implement what next_permutation() does and I have done that in a previous solution:https://www.adamk.org/leetcode-31-next-permutation/ Here is my recursive solution … Continue reading

Posted in programming | Tagged , , | Leave a comment

Origins of the C++ name

In Stroustrup’s “A Tour of C++”, it says that C++ takes its name from: The increment operator (++) combined with C programming language name. George Orwell’s novel “1984”. The first was obvious and expected but the second was surprising, so … Continue reading

Posted in programming | Tagged , | Leave a comment