Practice the exact questions companies are asking right now.
You are given an array weights[0..n-1] of positive integers representing product weights in a line. Repeat until no products remain: choose the lighte...