This is a verified interview question from Amazon-ml-summer-school. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Minimum Operations to Make Alice Win" covers key patterns like Other.
"Alice and Bob are playing a game with two arrays. Alice will win the game if the maximum value of her array is greater than or equal to the minimum value of Bob's array. You can add or subtract 1 to the value of any element in the arrays. Find the minimum number of operations required to make Alice win the game. "
Join thousands of developers practicing for Amazon-ml-summer-school.