Category: implementation
Brainfuck is a mini programming language that has only 8 keywords, i.e. 8 types of operations expressed by 8 characters. In , the Brainfuck is introduced and a python …
October 22, 2012
algorithms, brute force, code, code library, implementation, interview questions, math, programming languages, python, recursive, tricks
Q: List and compare the methods to compute where a, b, n are positive integers. A: We have four methods. The first one is to naively compute the value …
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 - …
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 …