Back to Question
Find the Difference
Question Explain
You are given two strings $s$ and $t$. String $t$ is generated by randomly shuffling string $s$ and then adding one more letter at a random position. Find the letter that was added to $t$. Solve using XOR or frequency array.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.