Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cove ...
We define the Perfect Number is apositiveinteger that is equal to the sum of all itspositivedivisors except itself. Now, given anintegern, write a function that returns true when it is a perfect numb ...
2017-03-28 21:07 4 5975 推荐指数:
Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cove ...
Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => ...
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is mis ...
Given a non-empty array of integers, every element appears twice except for one. Find that single ...
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. ...
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 ...