LeetCode Question · Jan 2022

Amazon OA Question - Is there an O(n)

17 upvotes 8,717 views 12 replies

Question Details

Given an array "points" of numbers, a score can be calculated for a subarray [i....j] by... score = min(points[i...j])*sum(points[i...j[) return the sum of all scores of all possible subarrays. For example, points =...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays