Category: algorithms
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 …
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 …
Bubble sort is a very simple sorting technique that has the average and worst-case complexity . It swaps each time neighbouring two elements if it is not in order. …