Given a sorted linked list, delete all duplicates such that each element appear only once.
Given an array of integers, every element appears three times except for one. Find that single one.
Given an array of integers, every element appears twice except for one. Find that single one.
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
localStorage 和 sessionStorage 属性允许在浏览器中存储 key/value 对的数据。
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.
Given an array of non-negative integers, you are initially positioned at the first index of the array.
A peak element is an element that is greater than its neighbors.
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
Say you have an array for which the ith element is the price of a given stock on day i.