Back to Question
Find the Difference (Hash Map/XOR)
Question Explain
Given two strings $s$ and $t$, where $t$ contains all the letters of $s$ plus one extra letter, find the extra letter. Solve efficiently using XOR or a frequency map.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.