Quiz: Two Unique Numbers

Test your understanding

Check Your Understanding

In 'Single Number III' (two numbers appear once, rest twice), after XORing all numbers you get a⊕ba \oplus b. How do you separate aa and bb?

  1. A.Sort and scan for non-duplicates
  2. B.Find a set bit in a⊕ba \oplus b, partition numbers by that bit, XOR each group
  3. C.Use a hash map
  4. D.Divide by 2 repeatedly
Start the roadmap to answer the quizzes and solve the challenges