随笔分类 - Leetcode
Leetcode题解
摘要:题目重述 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would ha
阅读全文
摘要:使用动态规划、回溯法求解Leetcode第22题-括号生成问题。
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且有效的括号组合。
阅读全文

浙公网安备 33010602011771号