DEV Community

Discussion on: Sorting Algorithms in Go

Collapse
 
robert profile image
Robert Wallis

Nice article!

Go has swap without temp

n[i], n[i + 1] = n[i + 1], n[i]
Enter fullscreen mode Exit fullscreen mode
Collapse
 
adnanbabakan profile image
Adnan Babakan (he/him)

Oh nice, thanks for the tip. I just started to learn Go and it is fascinating. :)