- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 【LeetCode】36. Valid Sudoku - Java实现
文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:Each row must contain the digits 1-9 wit...
2018-12-17 22:05:48 524
原创 【LeetCode】35. Search Insert Position - Java实现
文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: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 in order.You m...
2018-12-16 12:11:13 712
原创 【LeetCode】34. Find First and Last Position of Element in Sorted Array - Java实现
文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime complexity mu...
2018-12-16 11:52:33 913
原创 【LeetCode】33. Search in Rotated Sorted Array - Java实现
文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: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,2]).You are giv...
2018-12-09 21:54:55 343
原创 【LeetCode】32. Longest Valid Parentheses - Java实现
文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.Example 1:Input: “(()”Ou...
2018-12-09 14:38:00 611
原创 【LeetCode】31. Next Permutation - Java实现
文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it mus...
2018-12-04 08:22:04 488
原创 【LeetCode】30. Substring with Concatenation of All Words - Java实现
文章目录1. 题目描述:2. 思路分析:3. Java代码:1. 题目描述: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 concatenation o...
2018-12-03 22:21:04 597
C语言---经典编程900例---------------------
2010-05-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人