Mode: On-Campus OA Date: 2026-11-02
You are given n parcels. Each parcel has a
n
…
Given an array of values, determine the required result under the following conditions.
Input: [4, 8, 15, 16, 23, 42]
Output: 3
Constraints: 1 ≤ n ≤ 10⁵
Unlock the full statement, examples, constraints, and solution guidance.
Run code to see test results
Capital One • 102 views
Capital One • 104 views
Capital One • 101 views
Capital One • 198 views