Category: brute force
The problem is from codeforces: http://www.codeforces.com/problemset/problem/214/A Simple as that, the brute-force can pass the tests. The given ranges for n and m are acceptable for the simple brute-force algorithm. …
This was an interview question from Google. The difficulty is entry level. The question asks how many zeros are there for the numerical result of 1024!, which is 1 …
It is said this question is an interview question for some Software Engineer job. The question is like this. In Australia, each family prefer the girls rather than boys. …
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 …