69.Sqrt(x)

Given a non-negative integer , return the square root of rounded down to the nearest integer. The returned integer should be non-negative as well.

You must not use any built-in exponent function or operator.

Read more »

66.Plus One

You are given a large integer represented as an integer array , where each is the digit of the integer. The digits are ordered from most significant to least significant in left-to-right order. The large integer does not contain any leading ‘s.

Increment the large integer by one and return the resulting array of digits.

Read more »

35.Search Insert Position

Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

You must write an algorithm with runtime complexity.

Read more »

27.Remove Element

Given an integer array and an integer , remove all occurrences of in in-place. The relative order of the elements may be changed.

Since it is impossible to change the length of the array in some languages, you must instead have the result be placed in the first part of the array . More formally, if there are elements after removing the duplicates, then the first elements of should hold the final result. It does not matter what you leave beyond the first elements.

Read more »