Given a digit string, return all possible letter combinations that the number could represent. A mapping of di…
分类:LeetCode
[LeetCode] Rotate List 旋转链表, Rotate Array 旋转数组
Given a list, rotate the list to the right by k places, where k is non-negative. Fo…
[LeetCode] Find the Celebrity 寻找名人
Suppose you are at a party with n people (labeled from 0 to n - 1) and among t…
[LeetCode] Super Washing Machines 超级洗衣机
You have n super washing machines on a line. Initially, each washing machine has some dresses…
LeetCode | Merge Intervals
题目: Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,1…
238. Product of Array Except Self
Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the p…
7. Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer. Example 1:Input: 123Output: 321 Example 2:Input: …
500. Keyboard Row
原题地址: https://leetcode.com/problems/keyboard-row/description/ 大意:无聊的题目。。给一个list,list的每个元素是一个单词,看看这些单词是不是字母都在键盘…
198. 打家劫舍
注意事项 这个题目很容易搞明白, 但是需要注意的是, 这个题目的初始化比较麻烦. class Solution(object): def rob(self, nums): """ :type nums: List[int…
[LeetCode By Go 18]104. Maximum Depth of Binary Tree
题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest pat…
[LeetCode] Search in Rotated Sorted Array 在旋转有序数组中搜索
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7&nb…
[LeetCode] Perfect Squares 完全平方数
Given a positive integer n, find the least number of perfect square numbers (for example, 1, …