Azienda coinvolta
How to swap two numbers without using temporary variable?
Anonimo
Swap(a, b){ a = a+b., b = a-b a = a-b } That works fine for numbers and characters only for complex types that will not work.
Provided addition/subtraction and XOR solution. But they were still looking for something else.
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.