LeetCode Problem#283 Move Zeroes

This is an attempt to solve Problem#941 from Leetcode using Scala and functional programming style. Also included principles from book Clean Code like small functions, descriptive function/variable names, minimum comments etc. The algorithm used for this problem is

  • scan array from left to right

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store