Tag: algorithm
The Halting Problem is one of the most classic and well-known problem in computational theory. It can be stated as “Given the description of any computer programs, decide whether …
The problem is from codeforces: http://codeforces.com/problemset/problem/298/B The note given in the problem description pretty much explains the problem clearly. In every moment, the ship can choose to stay put or …
May 31, 2013
compiler, delphi, floating point, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, technical, tricks, windows
In Delphi, you can use the keyword absolute to force the union variable. e.g. Two variables share the same memory location, which is good to do some tricky things, for example, …
Today I need a Java function to check if a given time string e.g. 20130218001203638, (e.g, 18 of Feb, 2013) is weekend, i.e Saturday or Sunday. So, the following …
It looks like it has been a while since last time I submitted code to codeforces. I almost forgot the fun of solving problems. Again, I choose solving easy …