/one-char-away

Compare two strings to determine if they could be identical if only a single character is edited

Primary LanguageJava

One Char Away

Determines if two strings are composed of all matching characters, execpt for a single error. Strings can be in any order and therefore takes 2(O(N)) time.

Usage

See contents of run.sh or use:

sh run.sh string_one string_two