摘要: 原题链接在这里:https://leetcode.com/problems/wiggle-sort/ 题目: Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nu 阅读全文
posted @ 2016-02-11 10:43 Dylan_Java_NYC 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-word-distance-iii/ 题目: This is a follow up of Shortest Word Distance. The only difference is now word1  阅读全文
posted @ 2016-02-11 10:16 Dylan_Java_NYC 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-word-distance-ii/ 题目: This is a follow up of Shortest Word Distance. The only difference is now you are 阅读全文
posted @ 2016-02-11 09:28 Dylan_Java_NYC 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-word-distance/ 题目: Given a list of words and two words word1 and word2, return the shortest distance be 阅读全文
posted @ 2016-02-11 04:39 Dylan_Java_NYC 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/flip-game-ii/ 题目: You are playing the following Flip Game with your friend: Given a string that contains only th 阅读全文
posted @ 2016-02-11 03:31 Dylan_Java_NYC 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/flip-game/description/ 题目: You are playing the following Flip Game with your friend: Given a string that contain 阅读全文
posted @ 2016-02-11 03:06 Dylan_Java_NYC 阅读(1121) 评论(0) 推荐(0) 编辑