Follow

Multiple assignment swapping is handy when implementing sorting algorithms (for teaching purposes) in :

a[i], a[i - 1] = a[i - 1], a[i]

· · 0 · 0 · 1
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.