随笔分类 -  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 阅读全文
posted @ 2020-04-09 21:05 陌良 阅读(170) 评论(0) 推荐(0)
摘要:使用动态规划、回溯法求解Leetcode第22题-括号生成问题。 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且有效的括号组合。 阅读全文
posted @ 2020-04-09 16:36 陌良 阅读(118) 评论(0) 推荐(0)