Assignment four involved sorting the array containing the piles of sticks.
(a) Describe the sorting algorithm briefly.
(b) We then got rid of zeroes at the beginning of the array. Suppose the array is named "gamestate". Write Python code to check whether the first element of gamestate is zero, and if so, to remove that item from the array.
[solution]