DoorDash logoDoorDash
Coding·60 minMembers

Code Craft: Similar Restaurant Names (K-Swap Anagram)

Members only

K-anagram-family Code Craft variant. Determine if two restaurant names are "similar" — equivalent up to at most `k` character swaps. Several recent loops use `k = 2` (one swap of two character positio...

SWE
string
hashmap
easy
Frequency
Low
Last asked
2026-03-13
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...