最新 最热

Leetcode 51 N-Queens

The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens

2018-01-12
1

Leetcode 78 Subsets

Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example, If nums = [1,2,...

2018-01-12
0

Leetcode 70 Climbing Stairs

You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb

2018-01-12
1

Leetcode 82 Remove Duplicates from Sorted List II

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3...

2018-01-12
1

Leetcode 220. Contains Duplicate III

Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and nums[j]...

2018-01-12
1

Leetcode 219. Contains Duplicate II

Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolut...

2018-01-12
1

Leetcode 217. Contains Duplicate

Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and i...

2018-01-12
0

Leetcode 215. Kth Largest Element in an Array

Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For example, Gi...

2018-01-12
0

Leetcode 268. Missing Number

Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example, Given nums = [0, 1, 3] re...

2018-01-12
1

[LeetCode] 78. Subsets

【原题】 Given a set of distinct integers, nums, return all possible subsets.Note: The solution set

2018-01-03
0