LeetCode刷题笔记(Python-001)
283.Move Zeroes(难度:Easy)
描述:Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.
举例:
输入: [0,1,0,3,12]
输出: [1,3,12,...
原创
2019-11-08 12:05:07 ·
106 阅读 ·
0 评论