摘要: 问题: 给定数组,求其中两两元素对之差=数组中两元素之差的最小值的,元素对数组。 Example 1: Input: arr = [4,2,1,3] Output: [[1,2],[2,3],[3,4]] Explanation: The minimum absolute difference is 阅读全文
posted @ 2020-07-06 16:19 habibah_chang 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 问题: 给出某年某月某日,求该天是周几? Example 1: Input: day = 31, month = 8, year = 2019 Output: "Saturday" Example 2: Input: day = 18, month = 7, year = 1999 Output: 阅读全文
posted @ 2020-07-06 14:19 habibah_chang 阅读(149) 评论(0) 推荐(0) 编辑