Tag: bruteforce
This puzzle is from Timus Online Judge and you can submit your solution here. The first line of the input is an integer containing the number of total tests, …
The puzzle is from Timus Online Judge. Despite detailed description, which may be confusing, the puzzle is really simple to solve. It asks you to find out the identical …
This puzzle from Timus Online Judge is interesting and kinda practical in reality. This problem can be used to study the traffic jams. Put it simpler in other words. …
The problem is from Timus Online Judge. Den only has two locks. He never uses the same lock two days in a row. Therefore, if the thief wants to …
Question: Given a string containing only numbers, restore it by returning all possible IP addresses (in a vector) Original Problem Page: http://oj.leetcode.com/problems/restore-ip-addresses/ Examples: Given "25525511135", return . (Order does not matter) A …