200. Number of Islands
198. House Robber
Description
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent houses were broken into on the same night.
191. Number of 1 Bits
Description
Given a positive integer n
, write a function that returns the number of set bits in its binary representation (also known as the Hamming weight).
695. Max Area of Island
684. Redundant Connection
678. Valid Parenthesis String
153. Find Minimum in Rotated Sorted Array
153. Find Minimum in Rotated Sorted Array
Description
Suppose an array of length n
sorted in ascending order is rotated between 1
and n
times. For example, the array nums = [0,1,2,4,5,6,7]
might become: