Women in STEM Charity

Asked at Canva · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026

Stacey is coordinating a beach clean-up event with her university's Women in STEM charity branch. The beach is covered with tin cans of varying weights arranged in a single line, indexed from 0 to n-1.

Loading the problem…