Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    \$\begingroup\$ Your function will fail if in the first try, b was empty. \$\endgroup\$ Commented Sep 14, 2014 at 22:04
  • \$\begingroup\$ All inputs will be at least 1 char long, you give the function the 2 strings you want to compare so that won't happen \$\endgroup\$ Commented Sep 15, 2014 at 22:25
  • \$\begingroup\$ @Optimizer did you even try running it? \$\endgroup\$ Commented Sep 15, 2014 at 22:37
  • \$\begingroup\$ Ah, I see. In that case, it will be fine. \$\endgroup\$ Commented Sep 16, 2014 at 6:43