Skip to content

Q1_05_One_Away.rb#12

Open
richardsondx wants to merge 2 commits intocareercup:masterfrom
richardsondx:master
Open

Q1_05_One_Away.rb#12
richardsondx wants to merge 2 commits intocareercup:masterfrom
richardsondx:master

Conversation

@richardsondx
Copy link
Copy Markdown

Turning the string into an array and comparing their intersection is a quicker way to determine if there's one change away.

You can use the length of the intersection of the two string converted to an array to determine if there's one edit away.
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

Successfully merging this pull request may close these issues.

1 participant