Solved LeetCode program · 214 of 1,000
#0260 · Single Number III
Original English source
Keep a shared numbers holding 1, 2, 1, 3, 2, and 5. Keep a shared seek of 0. Keep a shared tally of 0. Keep a shared answers as an empty list of whole numbers.
To gather from spot (a whole number) with last (a whole number). If spot is more than last, return. If item spot of numbers is seek, add 1 to tally. Gather from spot plus 1 with last.
For every spot from 0 to 5.
Set seek to item spot of numbers. Set tally to 0. Gather from 0 with 5. If tally is 1, Place seek into answers.
Sort answers. For each value in answers, show value.
Expected stdout
3 5