Date: 04/15/06 (Algorithms) Keywords: no keywords Our professor teased us that there is a way, in languages that have xor operators, to switch two variables without introducting a temporary variable. I can't figure out how to do it. Can anyone here? Source: http://community.livejournal.com/algorithms/75175.html
|