283. Move Zeroes

Description:

https://leetcode.com/problems/move-zeroes/#/description

Algorithm:

  1. Use swap.

Code:

Time & Space:
O(n) & O(1)

Leave a Reply

Your email address will not be published. Required fields are marked *