摘要: Description Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Exam 阅读全文
posted @ 2018-09-04 15:08 C_supreme 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Description Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1: Example 2 阅读全文
posted @ 2018-09-04 14:10 C_supreme 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 Description Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] 阅读全文
posted @ 2018-09-04 11:02 C_supreme 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Description Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twic 阅读全文
posted @ 2018-09-04 10:53 C_supreme 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 Description Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Example 2: Note: Try to come up as ma 阅读全文
posted @ 2018-09-04 10:28 C_supreme 阅读(143) 评论(0) 推荐(0) 编辑