摘要:
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" 阅读全文
摘要:
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 阅读全文
摘要:
Description: Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the c 阅读全文
摘要:
Description: Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Description: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of 阅读全文
摘要:
Description: Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string 阅读全文
摘要:
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 阅读全文