One Away
There are three type of edits that can be performed on strings:
- insert a character
- remove a character
- replace a character
Given two strings, write a function to check if they are on edit (or zero edit) away.
Latest Source Code:
Github: OneAway.java
Output:
pale, ple => true pales, pale => true pale, bale => true pale, bake => false