Pergunta de entrevista da empresa Nagravision

Given two strings, how do you swap them?

Resposta da entrevista

Sigiloso

11 de dez. de 2025

I answered this question using the classic three variable method (python), but was told the solution would not work ever. Later, I understood that they may have been asking about swapping the contents of the strings, not just the references.