Category: math
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) …
Source: http://oj.leetcode.com/problems/powx-n/ Implement Pow(x, n) which computes The given parameter x is a 64-bit double and n is a 32-bit integer. The quick solution may be so obvious, using bruteforce, iterate n times that multiplies x and gives a straightforward result. class Solution …
A Palindrome string is a string that mirrors itself, for example, ’12a21′ reverse is the same string and ‘abcde’ is not. A Palindrome number is a integer number that …
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 …
My wife’s brother is a junior high school student and he asked me this simple math problem. Simplify if .This isn’t difficult at all. The other number, flashes to …