排序:
默认
按更新时间
按访问量
RSS订阅

leetcode之Rotate Image

题目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-pla...

2019-01-23 11:12:18

阅读数 2

评论数 0

Leetcode之Permutaions

题目: Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3],...

2019-01-18 10:59:29

阅读数 2

评论数 0

Leetcode之Jump Game II

题目: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents you...

2019-01-17 10:44:00

阅读数 6

评论数 0

Leetcode之Wildcard Matching

题目: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single characte...

2019-01-17 10:34:05

阅读数 3

评论数 0

Leetcode之Multiply Strings

题目: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Exampl...

2019-01-15 11:54:25

阅读数 12

评论数 0

Leetcode之Trapping Rain Water

题目: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ra...

2019-01-14 11:09:53

阅读数 3

评论数 0

Leetcode之Combination Sum2

题目: 40. Combination Sum II Medium 64034FavoriteShare Given a collection of candidate numbers (candidates) and a target number (target), find all ...

2019-01-11 17:39:20

阅读数 8

评论数 0

Leetcode之First Missing Positive

题目: Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example 2: Input: [3,4,-...

2019-01-11 10:34:36

阅读数 5

评论数 0

Leetcode之Combination Sum

题目: Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates wher...

2019-01-09 11:19:56

阅读数 5

评论数 0

Leetcode之Count and Say

题目: The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. ...

2019-01-08 12:48:30

阅读数 1

评论数 0

Leetcode之Sudoku Solver

题目: Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of the di...

2019-01-07 11:54:26

阅读数 10

评论数 0

leetcode之Search Insert Position

题目: Given a sorted array 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...

2019-01-03 11:12:49

阅读数 9

评论数 0

Leetcode之Find First and Last Position of Element in Sorted Array

题目: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runt...

2019-01-02 15:40:26

阅读数 6

评论数 0

leetcode之Search in Rotated Sorted Array

题目: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1...

2018-12-27 15:20:03

阅读数 9

评论数 0

Leetcode之 Longest Valid Parentheses

题目: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1:...

2018-12-26 15:03:04

阅读数 9

评论数 0

leetcode之NextPermutation

题目: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not...

2018-12-25 16:02:36

阅读数 14

评论数 0

Leetcode之Substring with Concatenation of All Words

题目: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a...

2018-12-14 21:52:28

阅读数 8

评论数 0

Leetcode之Divide Two Integers

题目: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after...

2018-12-12 13:33:37

阅读数 7

评论数 1

Leetcode之Remove Element

题目: Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for ano...

2018-10-11 23:44:42

阅读数 9

评论数 0

leetcode之Reverse Nodes in k-Group

题目: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or e...

2018-10-09 21:39:49

阅读数 8

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭