Find a player by ID, fast
Search a sorted array of 100,000 player IDs with binary search, halving the range each step, and prove it with a step counter.
Search a sorted array of 100,000 player IDs with binary search, halving the range each step, and prove it with a step counter.
Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.