$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #51

Fill the expression that completes an in-place swap.

arr[i], arr[j] = arr[j], ____

Answer: arr[i] (also accepted: arr[i])

Tuple assignment swaps two elements without a temp.
Play Problem Solving ▸