Goldman Sachs logoGoldman Sachs
Coding·60 minMembers

Plus-Multiply Even / Odd Parity

Members only

Walk the input array splitting it into even-index and odd-index streams; alternate `+` and `*` operations within each stream; compare the final parity of the two sums and return EVEN / ODD / NEUTRAL.

SWE
array
simulation
medium
Frequency
Single report
Last asked
2024-10-26
Stage
oa

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...