搜索结果
查询Tags标签: wiggle,共有 3条记录-
LeetCode 376. Wiggle Subsequence
LeetCode 376. Wiggle Subsequence (摆动序列) 题目 链接 https://leetcode.cn/problems/wiggle-subsequence/ 问题描述 如果连续数字之间的差严格地在正数和负数之间交替,则数字序列称为 摆动序列 。第一个差(如果存在的话)可能是正数或负数。仅有一个元素或者含两个不…
2022/6/20 23:22:09 人评论 次浏览 -
376. Wiggle Subsequence
package LeetCode_376/*** 376. Wiggle Subsequence* https://leetcode.com/problems/wiggle-subsequence/* A wiggle sequence is a sequence where the differences between successive numbers strictly alternate between positive and negative.* The first differen…
2021/8/1 23:35:55 人评论 次浏览 -
376. Wiggle Subsequence
package LeetCode_376/*** 376. Wiggle Subsequence* https://leetcode.com/problems/wiggle-subsequence/* A wiggle sequence is a sequence where the differences between successive numbers strictly alternate between positive and negative.* The first differen…
2021/8/1 23:35:55 人评论 次浏览