class Questions::Issue20260209


Question

Given an integer array and a number n, move all of the ns to the end of the array while maintaining the relative order of the non-ns.

Bonus: do this without making a copy of the array!