04 2021 档案

摘要:Description: Given two binary strings a and b, return their sum as a binary string. Link: 67. Add Binary Examples: Example 1: Input: a = "11", b = "1" 阅读全文
posted @ 2021-04-25 10:05 summer_mimi 阅读(75) 评论(0) 推荐(0)
摘要:Description: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after ra 阅读全文
posted @ 2021-04-24 20:37 summer_mimi 阅读(85) 评论(0) 推荐(0)
摘要:Description: Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the c 阅读全文
posted @ 2021-04-21 10:18 summer_mimi 阅读(48) 评论(0) 推荐(0)
摘要:Description: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where 阅读全文
posted @ 2021-04-21 09:56 summer_mimi 阅读(61) 评论(0) 推荐(0)
摘要:Description: There are a total of n courses you have to take labelled from 0 to n - 1. Some courses may have prerequisites, for example, if prerequisi 阅读全文
posted @ 2021-04-20 13:42 summer_mimi 阅读(55) 评论(0) 推荐(0)
摘要:Description: There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where pr 阅读全文
posted @ 2021-04-20 13:07 summer_mimi 阅读(141) 评论(0) 推荐(0)
摘要:Description: Given the root of a binary tree, return all root-to-leaf paths in any order. A leaf is a node with no children. Link: 257. Binary Tree Pa 阅读全文
posted @ 2021-04-19 19:50 summer_mimi 阅读(55) 评论(0) 推荐(0)
摘要:Description: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of 阅读全文
posted @ 2021-04-19 19:22 summer_mimi 阅读(83) 评论(0) 推荐(0)
摘要:Description: Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string 阅读全文
posted @ 2021-04-17 21:07 summer_mimi 阅读(73) 评论(0) 推荐(0)
摘要:Description: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty stri 阅读全文
posted @ 2021-04-17 19:47 summer_mimi 阅读(81) 评论(0) 推荐(0)
摘要:Description: Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array rep 阅读全文
posted @ 2021-04-17 11:53 summer_mimi 阅读(69) 评论(0) 推荐(0)
摘要:Description: Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequence is a sequence that can be de 阅读全文
posted @ 2021-04-16 19:42 summer_mimi 阅读(59) 评论(0) 推荐(0)
摘要:Description:You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails t 阅读全文
posted @ 2021-04-16 13:47 summer_mimi 阅读(58) 评论(0) 推荐(0)
摘要:Description: Given the root of a complete binary tree, return the number of the nodes in the tree. According to Wikipedia, every level, except possibl 阅读全文
posted @ 2021-04-15 14:10 summer_mimi 阅读(141) 评论(0) 推荐(0)
摘要:Description: Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one repeated 阅读全文
posted @ 2021-04-14 19:51 summer_mimi 阅读(62) 评论(0) 推荐(0)
摘要:Description: Given an array of positive integers nums and a positive integer target, return the minimal length of a contiguous subarray [numsl, numsl+ 阅读全文
posted @ 2021-04-13 21:13 summer_mimi 阅读(89) 评论(0) 推荐(0)
摘要:Description: Given the root of a binary search tree, and an integer k, return the kth (1-indexed) smallest element in the tree. Link: 230. Kth Smalles 阅读全文
posted @ 2021-04-12 22:20 summer_mimi 阅读(58) 评论(0) 推荐(0)
摘要:Description: A peak element is an element that is strictly greater than its neighbors. Given an integer array nums, find a peak element, and return it 阅读全文
posted @ 2021-04-12 08:43 summer_mimi 阅读(73) 评论(0) 推荐(0)
摘要:Description: Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,4,4,5,6,7] mi 阅读全文
posted @ 2021-04-11 20:56 summer_mimi 阅读(64) 评论(0) 推荐(0)
摘要:Description: Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,2,4,5,6,7] mi 阅读全文
posted @ 2021-04-11 16:32 summer_mimi 阅读(78) 评论(0) 推荐(0)
摘要:Description: There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values). Before being passed to your functio 阅读全文
posted @ 2021-04-11 15:17 summer_mimi 阅读(63) 评论(0) 推荐(0)
摘要:Description: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row 阅读全文
posted @ 2021-04-11 11:00 summer_mimi 阅读(75) 评论(0) 推荐(0)
摘要:Description: Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. If target is no 阅读全文
posted @ 2021-04-10 22:19 summer_mimi 阅读(60) 评论(0) 推荐(0)
摘要:Description: Given two integers dividend and divisor, divide two integers without using multiplication, division, and mod operator. Return the quotien 阅读全文
posted @ 2021-04-10 20:48 summer_mimi 阅读(69) 评论(0) 推荐(0)
摘要:Description: There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is rotated 阅读全文
posted @ 2021-04-10 18:31 summer_mimi 阅读(53) 评论(0) 推荐(0)
摘要:Description: You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing 阅读全文
posted @ 2021-04-09 21:33 summer_mimi 阅读(91) 评论(0) 推荐(0)
摘要:Description: Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row belo 阅读全文
posted @ 2021-04-08 14:00 summer_mimi 阅读(56) 评论(0) 推荐(0)
摘要:Description: Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length. Do not all 阅读全文
posted @ 2021-04-06 20:22 summer_mimi 阅读(78) 评论(0) 推荐(0)
摘要:Description: Given a string S, check if the letters can be rearranged so that two characters that are adjacent to each other are not the same. If poss 阅读全文
posted @ 2021-04-05 09:03 summer_mimi 阅读(59) 评论(0) 推荐(0)
摘要:Description:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a 阅读全文
posted @ 2021-04-04 18:53 summer_mimi 阅读(62) 评论(0) 推荐(0)
摘要:Description: Given a string s and a string array dictionary, return the longest string in the dictionary that can be formed by deleting some of the gi 阅读全文
posted @ 2021-04-03 08:38 summer_mimi 阅读(70) 评论(0) 推荐(0)
摘要:Description: There are some spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of t 阅读全文
posted @ 2021-04-02 17:15 summer_mimi 阅读(72) 评论(0) 推荐(0)
摘要:Description: Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as 阅读全文
posted @ 2021-04-02 13:51 summer_mimi 阅读(58) 评论(0) 推荐(0)