随笔分类 -  leetCode刷题

Summary Ranges
摘要:题目大意 Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. 阅读全文

posted @ 2017-10-20 15:35 airycode 阅读(139) 评论(0) 推荐(0) 编辑

581. Shortest Unsorted Continuous Subarray
摘要:题目链接 https://leetcode.com/problems/shortest-unsorted-continuous-subarray/description/ 题目大意 给定一个整数数组,你需要找到一个连续的子阵,如果你只是这阵升序,然后整个阵列将以升序排序,也。你需要找到最短的子阵输出 阅读全文

posted @ 2017-10-14 12:16 airycode 阅读(183) 评论(0) 推荐(0) 编辑

LeetCode - 575. Distribute Candies
摘要:题目链接地址: https://leetcode.com/problems/distribute-candies/description/ 题目大意: 给定一个偶数长度的整数数组,数组中的不同数字代表不同种类的糖果。每一个数字意味着相应的一个糖果。你需要把这些糖果均匀地分配给弟弟和妹妹。返回姐姐能得 阅读全文

posted @ 2017-10-14 11:26 airycode 阅读(261) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示