Capital One logoCapital One
Coding·70 minMembers

AP Replacement Rounds

Members only

Repeatedly transform an `A`/`P` array: if the trailing run of `P`s is at least `replacement_rate`, strip that many `P`s from the end; else if any `A` exists, replace the rightmost `A` with `P`; else s...

SWE
array
simulation
math
medium
oa
codesignal
Frequency
Single report
Last asked
2026-01-27
Stage
oa

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...