摘要: Given an integer, return its base 7 string representation. Example 1: Input: 100 Output: "202" Example 2: Input: 7 Output " 10" Note: The input will b 阅读全文
posted @ 2018-10-23 09:30 A-Little-Nut 阅读(129) 评论(0) 推荐(0) 编辑
摘要: We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra 阅读全文
posted @ 2018-10-23 09:23 A-Little-Nut 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: 阅读全文
posted @ 2018-10-23 09:19 A-Little-Nut 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Given an array nums and a value val, remove all instances of that value in place and return the new length. Do not allocate extra space for another ar 阅读全文
posted @ 2018-10-23 09:17 A-Little-Nut 阅读(119) 评论(0) 推荐(0) 编辑