Standard LC mediums, nothing too crazy.
Interviewer was pretty chill and was helpful in pointing me in the right direction when I needed as well.
Only thing I would probably change was to study more on graph problems beforehand.
You are given a 0-indexed integer array weights, where weights[i] represents the weight of the i-th marble, and an integer k. Your task is to divide the marbles into k bags such that:
The cost of a bag that includes marbles from index i to j (inclusive) is defined as weights[i] + weights[j]. The total score of a distribution is the sum of the costs of all k bags.
Return the difference between the maximum and minimum possible scores among all valid distributions.
The following metrics were computed from 52 interview experiences for the Amazon Software Development Engineer (SDE) Intern role in Seattle, Washington.
Amazon's interview process for their Software Development Engineer (SDE) Intern roles in Seattle, Washington is fairly selective, failing a large portion of engineers who go through it.
Candidates reported having very good feelings for Amazon's Software Development Engineer (SDE) Intern interview process in Seattle, Washington.