Reverse words in string, sort 3-number array, and defective ball puzzle
Filed under GlobalLogic
The question
Write full code to reverse a string word by word, sort an array of unknown size containing only three distinct numbers (3, 4, and 5), and solve a puzzle to find 1 defective ball out of 9 using a weighing machine at most 2 times.
No write-up yet. Related questions below have one.
Related GlobalLogic questions
Collected from public candidate posts and coding forums. Updated Nov 2026.