Round 1
Questions:
-
You are given an array of weights. There is a guy in the gym who fixes a number before entering the gym. He will only be satisfied if he can lift at least that weight. Now we need to return if he would be able to lift that weight with the weights given.
Condition - Weights should be the same on the left & right side of the barbell.
Examples:- minWeightToSatisfy: 20
Weights: [2, 2, 4, 5, 5, 5]
Expected Answer: False - Weights: [2, 2, 4, 4, 4, 5, 5, 5]
Expected Answer: False
(5, 4, 2) ------- (2, 4, 5)
- minWeightToSatisfy: 20
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.