随笔分类 -  Traversal

遍历
[Leetcode 494]目标和 Target Sum
摘要:【题目】 若干个数字间,使用加法或减法连接,最终得到目标和target,求所有满足条件解的个数 You are given an integer array nums and an integer target. You want to build an expression out of nums 阅读全文
posted @ 2021-08-17 19:13 alau 阅读(61) 评论(0) 推荐(0)
[Leetcode 216]求给定和的数集合 Combination Sum III
摘要:【题目】 Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination shoul 阅读全文
posted @ 2018-11-26 20:22 alau 阅读(262) 评论(0) 推荐(0)
[Leetcode 135]糖果分配 Candy
摘要:【题目】 There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the followi 阅读全文
posted @ 2018-11-11 16:35 alau 阅读(234) 评论(0) 推荐(0)