
Given an array of integers nums, return the same array sorted in ascending order. Implement the sorting logic yourself; do not use built-in sorting helpers. You may modify the input array in place or return a new sorted array.
Given an array of integers nums, return the same array sorted in ascending order. Implement the sorting logic yourself; do not use built-in sorting helpers. You may modify the input array in place or return a new sorted array.