Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing from ...
Given an array containing n distinct numbers taken from , , , ..., n, find the one that is missing from the array. For example, Given nums , , return . Note: Your algorithm should run in linear runti ...
2015-08-25 10:10 4 19827 推薦指數:
Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing from ...
Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => ...
We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. Now, given an integer n ...
Given a non-empty array of integers, every element appears twice except for one. Find that single ...
Given a number N, return true if and only if it is a confusing number, which satisfies the following condition: We can rotate digits by 180 ...
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same b ...
Given an array of numbers nums, in which exactly two elements appear only once and all the other ...
You are standing at position 0 on an infinite number line. There is a goal at position target. On each move, you can either go left or right. ...