Exercise: Find the odd value
-
Given a list of values, we know that every value comes in pairs except one. Find where it is:
-
f(["a", "a", "b", "b", "c", "d", "d"]) would return 4
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Given a list of values, we know that every value comes in pairs except one. Find where it is:
f(["a", "a", "b", "b", "c", "d", "d"]) would return 4