Given two strings word1 and word2, return the minimum number of operations (insert, delete, replace) to convert word1 to word2.
Input: word1='horse', word2='ros' Output: 3 Input: word1='intention', word2='execution' Output: 5
Unlock hints progressively β start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features