DEV Community

Discussion on: How can you swap two variables without using a third?

 
theoutlander profile image
Nick Karnik

[] allocates new space I think so this solution won't be in constant space.