RRetool·DSAEngineerOnsite – Coding 1
Implement Wordle Scoring / Build a Form (Practical)
Problem
Implement Wordle's guess-scoring (greens/yellows/greys handling duplicate letters), or build a small React form with validation (reported Retool tasks).
Example
scoreGuess("allol","hello") -> correct green/yellow/grey pattern
Constraints
- Handle duplicate letters correctly
Approach
Two passes: greens first, then yellows from remaining letter counts.
added 6 days ago