Category: beginner
Question: Given an unsorted list of integers, find out the first missing positive. Problem Description: http://oj.leetcode.com/problems/first-missing-positive/ Examples: should return 3; should return 2. Can you do it with O(n) …
Question: Determine the length of the last word in a string given in C, as const char* Problem Description: http://oj.leetcode.com/problems/length-of-last-word/ A word is defined as a sequence of non-space characters. …
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 …
oj.leetcode.com is an online judge website that provides quick exercise to programming tasks. This is helpful before you go for an interview for a software company. The tasks seem easier …
The problem is from codeforces: http://codeforces.com/problemset/problem/347/B It has been a while and I just pick another easy math problem to update the blog. The problem states that only maximum 1 …