Category: tricks
October 14, 2012
algorithms, beginner, bit hacks, brute force, implementation, interview questions, math, programming languages, python, tricks
Q: n is a none-negative numbers, in order to let divides perfectly 7, characterise n. A: in binary representation is n ones. And 7 in binary is 111. The …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/228/A The answer is to count the unique number of integers and substract from four. The SQL to the answer is: select 4 - …
Before Delphi 2007, sometimes you will have a warning showing up for lengthy functions, even if you have defined return value at the begining of the function, for example: …
September 19, 2012
batch script, beginner, DOS, I/O File, implementation, programming languages, string, tricks, windows, windows command shell
Previously, I have programmed some scripts in Windows Batch, and these can be found in the github. For example, the rot13.bat rotates given input string (command line parameters) to …
September 16, 2012
batch script, beginner, github, implementation, programming languages, string, tools / utilities, tricks, windows, windows command shell
If you have something that are not so important but prefer not so easy to read at first except to you. You can simply reverse the text. For example, …