Pergunta de entrevista da empresa Phenom

Swap 2 strings without using a third variable.

Resposta da entrevista

Sigiloso

21 de out. de 2025

concat the 2 strings, then use s2 = substring(0, s1.length()-s2.length()) and s1 = substring(s2.length())