DEV Community

Discussion on: Terrible interview question: Swap variables without a temporary

Collapse
 
karataev profile image
Eugene Karataev

This solution looks good, but it doesn't qualify for the requirements, because you create a temporary array [b,a] in the third line.