Tag: python
If you want to compute x2 you can easily write a function in Python like this: def sqr(x): return x * x # or x ** 2 If you …
The Scatter Plot is often used to show vivid relations between two variables. Plotting is made very simple and easy in Python using numpy and matplotlib.pylab package. To demonstrate, …
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 …