You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Implement Selection Sort and print the index which gets swapped at each step.
# Input Format
# The first line of input contains T - the number of test cases. It's followed by 2T lines. The first line of each test case contains N - the size of the array. The next line contains N integers - elements of the array.
# Output Format
# For each test case, print the index which gets swapped at each step, separated by space. Separate the output of different tests by a new line.