Algorithm · Tesla · Medium
Requirements Take two equally sized strings, target and guess, and inspect the characters at matching indices. Return an array of outcomes for individual positions, not one combined total. Each index must receive one of three codes: an exact hit (same character at the same index), a misplaced hit (the character occurs in target at a different usable index), or a miss (no usable copy remains). While assigning misplaced hits, each occurrence from target may be consumed only…
Checking your access…