Goldman Sachs logoGoldman Sachs
Coding·60 minMembers

Decode Ways / Alphanumeric Combination

Members only

Classic decode-ways DP: given a digit string, count the number of ways to decode it using the mapping A=1, B=2, …, Z=26. Appears verbatim on Goldman's OA bank.

SWE
dp
string
medium
Frequency
Low
Last asked
2025-07-11
Stage
oa · phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...