Category: programming languages
January 24, 2013
algorithms, beginner, brute force, codeforces, greedy algorithm, implementation, math, programming languages, python, search, simulation, tricks
The problem is from codeforces: http://www.codeforces.com/contest/265/problem/B This problem is not difficult, but it took me nearly 1:30 hr to get it right during the contest. I thought at first, the …
This problem is from codeforces: http://www.codeforces.com/problemset/problem/263/D This is a graph-related problem but it took me days to get it right. First i made a mistake in using Python language, see …
This is an actual technical exercise before interview (my friend asked me for help). The PDF requirement could be accessed . The problem statement is simple and clear, in …
The problem is from codeforces: http://codeforces.com/contest/263/problem/B Sort the squares by sizes then we will easily derive the answer. If there is a point in the smallest square, it must be …
The problem is from codeforces: http://codeforces.com/contest/263/problem/A It looks complex but in fact it is not. There is only one ‘1’ element in this fixed-5X5 matrix. The shortest path to the …