顯示具有 Move Zeroes 標籤的文章。 顯示所有文章
顯示具有 Move Zeroes 標籤的文章。 顯示所有文章

2018年5月16日 星期三

Leetcode - 283. Move Zeroes

Question:
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.