上一页 1 2 3 4 5 6 7 ··· 12 下一页

LeetCode-57-Insert Interval

摘要: 算法描述: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were 阅读全文
posted @ 2019-02-13 15:37 无名路人甲 阅读(125) 评论(0) 推荐(0) 编辑

LeetCode-52-N-Queens II

摘要: 算法描述: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, retur 阅读全文
posted @ 2019-02-13 15:08 无名路人甲 阅读(113) 评论(0) 推荐(0) 编辑

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 attack each other. Given an integer n, retur 阅读全文
posted @ 2019-02-13 14:57 无名路人甲 阅读(199) 评论(0) 推荐(0) 编辑

LeetCode-45-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 your 阅读全文
posted @ 2019-02-13 14:30 无名路人甲 阅读(114) 评论(0) 推荐(0) 编辑

LeetCode-44-Wildcard Matching

摘要: 算法描述: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching should cover the ent 阅读全文
posted @ 2019-02-13 10:15 无名路人甲 阅读(106) 评论(0) 推荐(0) 编辑

LeetCode-42-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 阅读全文
posted @ 2019-02-11 20:55 无名路人甲 阅读(85) 评论(0) 推荐(0) 编辑

LeetCode-41-First Missing Positive

摘要: 算法描述: Given an unsorted integer array, find the smallest missing positive integer. Example 1: Example 2: Example 3: Note: Your algorithm should run in 阅读全文
posted @ 2019-02-11 20:40 无名路人甲 阅读(87) 评论(0) 推荐(0) 编辑

LeetCode-37-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: Empty cells are 阅读全文
posted @ 2019-02-11 20:22 无名路人甲 阅读(87) 评论(0) 推荐(0) 编辑

LeetCode-32-Longest Valid Parentheses

摘要: 算法描述: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: 阅读全文
posted @ 2019-02-11 17:37 无名路人甲 阅读(91) 评论(0) 推荐(0) 编辑

LeetCode-30-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 阅读全文
posted @ 2019-02-11 16:52 无名路人甲 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页