Teacher:In this task, you are given a list of unique integers you need to swap the positions of maximum and minimum element in the list and return the updated list.
Teacher: Now, understand the problem? Solve this instance: [82, 63, 259, 99, 462, 116, 461, 303, 58, 394, 358, 190, 218, 43, 108, 28, 174, 224, 492, 47]
Student:
[82, 63, 259, 99, 462, 116, 461, 303, 58, 394, 358, 190, 218, 43, 108, 492, 174, 224, 28, 47]