DEV Community

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

Collapse
 
rachelsoderberg profile image
Rachel Soderberg

I don't recall whether it was one or two, but I did end up simply working through using char values. I was able to solve the problem as well as one can on a whiteboard, but I think it took me longer than they wanted (and I likely shot myself in the foot asking whether it was a library)