Minimum Swaps to Group All 1's Together II
Given an array nums of 0's and 1's, return the minimum number of swaps to group all 1's together.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)