Tag: algorithm
I will start collecting some interview questions. Q: Implement a Division but cannot use the division operator ‘/’ on two integers. A: We can use substraction instead. However, we …
July 20, 2012
algorithms, BASH, batch script, beginner, brute force, implementation, non-technical, programming languages, tools / utilities, tricks
Shell Script Programming is of lots of fun. The following script prints a chess board with 8×8 squares interleaving black and white. Using simple loops and some simple math …
July 16, 2012
algorithms, batch script, beginner, brute force, implementation, math, programming languages, technical, tricks, windows, windows command shell
Windows Batch File (*.bat, *.cmd) is probably the most well-known exectuable file formats because of its simplicity, i.e. each line corresponds to a command for shell to execute. This …
July 11, 2012
algorithms, batch script, beginner, code, code library, implementation, linux, multithreading, programming languages, tricks
In , the implementation of a sleep-sort algorithm is presented via the Python code. This article will shortly presents the implementation in Linux BASH Shell Script, which demonstrates the …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/26/A The input range is small which means even the worst brute-force methods can pass the test. The straightforward implementation is . Defining a …