摘要: 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 阅读(44) 评论(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 阅读(48) 评论(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 阅读(23) 评论(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 阅读(25) 评论(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 阅读(30) 评论(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 阅读(87) 评论(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 阅读(22) 评论(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 阅读(35) 评论(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 阅读(32) 评论(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 阅读(21) 评论(0) 推荐(0) 编辑