This puzzle is from Leetcode Online Judge and this may appear quite often during interviews. This puzzle asks you to find the minimal sum for a number triangle. You …
September 28, 2014
beginner, c / c++, code, code library, compiler, implementation, linux, programming languages, python, ubuntu
*.so files under Linux are similar to *.dll on windows. They are both shared library, which contain commonly-used functions/classes. The shared library can be loaded into memory whenever needed …
If we want to know whether a given string has repeated characters, the simplest way is to use the existing method of finding first occurrence from the end of …
Polish notation/expression is also known as ‘prefix notation’ where the numbers are preceded by its operator (placed in the front). For example, “3 * 5” transformed to polish notation …
Python programming language provides a neat syntax to reverse a string, tuple (a read-only list, immutable) or a list (array). The syntax is var which returns a reverse copy of the var. …