Move Zeroes

3-13 1,269 views

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. For exa...
阅读全文 0

Odd Even Linked List

5-13 1,258 views

Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not ...
阅读全文 0

Remove Duplicates from Sorted Array

3-13 1,230 views

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space...
阅读全文 0