JPMorgan Chase logoJPMorgan Chase
Coding·60 minMembers

Interval Sign Flips

Members only

Given an integer array and a list of intervals, flip the sign of every element inside each interval, then return the final array.

SWE
interval
array
prefix-sum
simulation
oa
easy
Frequency
Single report
Last asked
2025-11-19
Stage
oa

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...