Tag: online judges
Almost every online judge has a “A+B” problem. The first problem (easiest) is often present to allow testing if online judges are working (of course they are!) This problem …
The problem is from Timus Online Judge: . The problem asks you to print the square root in reverse order. Pay attention to the input size, which is no …
Remember a couple days ago, we discussed the O(n) and O(n^2) solutions to Single Number ? Question: Given an array of integers, every element appears three times except for one. Find …
Question: Given an array and a element, remove all instances of that value in place and return the new length. The order of elements can be changed and it …
Question: Given a number (integer) stored in an array of digits int digits Plus one and return the new array. Source: http://oj.leetcode.com/problems/plus-one/ The number is written from left to right, so for …