原文:[LeetCode] 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 posi ...

2016-07-22 23:57 7 9419 推荐指数:

查看详情

[LeetCode] Is Subsequence序列

Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s ...

Mon Sep 05 21:57:00 CST 2016 3 10921
[LeetCode] 280. Wiggle Sort 摆动排序

Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... Example: 这道题让我们求摆动排序 ...

Tue Feb 02 21:22:00 CST 2016 0 17544
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM