You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.5 One Away:
There are three types of edits that can be performed on strings: insert a character, remove a character, or replace a character. Given two strings, write a function to check if they are one edit (or zero edits) away.
EXAMPLE
pales, pale
pale, bale
pale, bake
pale, ple
true
true
true
false
book shows:
pales, pale => true
pale, bale => true
pale, bake => false
pale, ple => true
The text was updated successfully, but these errors were encountered:
1.5 One Away:
There are three types of edits that can be performed on strings: insert a character, remove a character, or replace a character. Given two strings, write a function to check if they are one edit (or zero edits) away.
EXAMPLE
pales, pale
pale, bale
pale, bake
pale, ple
true
true
true
false
book shows:
pales, pale => true
pale, bale => true
pale, bake => false
pale, ple => true
The text was updated successfully, but these errors were encountered: