Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mistake in 1.5 outputs #1

Open
vijaypraju04 opened this issue Apr 5, 2019 · 0 comments
Open

mistake in 1.5 outputs #1

vijaypraju04 opened this issue Apr 5, 2019 · 0 comments

Comments

@vijaypraju04
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant