I ask you to clarify these tasks, but not to bring them solutions. In the first task, it is not clear to me what is meant by "each time reducing by 1 the number of elements analyzed," and in the 2nd, this part is "their first entries."
Tasks:
- An array A of size N is given. Arrange it in ascending order by the sorting method with a simple choice: find the maximum element of the array and swap it with the last element; perform the described actions N - 1 time, each time reducing by 1 the number of analyzed elements and displaying the contents of the array.
- An integer array of size N is given. Remove all identical elements from the array, leaving their first entries.