2020年11月18日

283. Move Zeroes(双指针)

摘要: 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. Example: Input: 阅读全文

posted @ 2020-11-18 23:17 wsw_seu 阅读(58) 评论(0) 推荐(0) 编辑

287. Find the Duplicate Number

摘要: Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one duplicate number in n 阅读全文

posted @ 2020-11-18 23:15 wsw_seu 阅读(105) 评论(0) 推荐(0) 编辑

导航