上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen nu 阅读全文
posted @ 2020-12-18 16:41 diameter 阅读(87) 评论(0) 推荐(0) 编辑
摘要: The count-and-say sequence is a sequence of digit strings defined by the recursive formula: countAndSay(1) = "1" countAndSay(n) is the way you would " 阅读全文
posted @ 2020-12-18 15:34 diameter 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 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 digits 1-9 阅读全文
posted @ 2020-12-18 14:44 diameter 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the dig 阅读全文
posted @ 2020-12-17 17:34 diameter 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if i 阅读全文
posted @ 2020-12-17 14:55 diameter 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. If target is not found in th 阅读全文
posted @ 2020-12-17 14:22 diameter 阅读(75) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums sorted in ascending order, and an integer target. Suppose that nums is rotated at some pivot unknown to you before 阅读全文
posted @ 2020-12-17 10:43 diameter 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Input: s = "(()"O 阅读全文
posted @ 2020-12-16 19:16 diameter 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such an arrangement is not pos 阅读全文
posted @ 2020-12-14 17:23 diameter 阅读(68) 评论(0) 推荐(0) 编辑
摘要: You are given a string s and an array of strings words of the same length. Return all starting indices of substring(s) in s that is a concatenation of 阅读全文
posted @ 2020-12-13 21:15 diameter 阅读(86) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页