Showing 3 of 4 questions
Given the sums of all possible subsets of an unknown array of integers, reconstruct the original array. You need to deduce the hidden numbers that generate the given subset sums efficiently.
#1. Find Array Given Subset Sums
You are given two sorted arrays of integers. Find the maximum possible score by traversing the arrays, switching between them only at common elements, and maximizing the sum of visited values.
#2. Get the Maximum Score
You are given a list of people and their preferred hats. Determine the number of ways everyone can wear a different hat, choosing only from their preferences.
#3. Number of Ways to Wear Different Hats to Each Other
Page 1 of 1 · 4 total