标签归档:leetcode

RSS feed of leetcode

[LeetCode]Combination Sum IV

题目描述:

LeetCode 377. Combination Sum IV

Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.

Example:

nums = [1, 2, 3]
target = 4

The possible ...

继续阅读

[LeetCode]Wiggle Subsequence

题目描述:

LeetCode 376. Wiggle Subsequence

A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may be either positive or negative. A sequence ...

继续阅读