Ad
  • Custom User Avatar

    Needs tests on correctly handling name delimiters: every other solution (1 and 2) only considers alphabet words as names, and still pass all the tests. This would fail against

    assertTrue(NameValidator.areNamesIdentical("456 123", "123 456"));
    assertFalse(NameValidator.areNamesIdentical("A1B", "B1A"));
    

    Among others.

  • Custom User Avatar

    What happens when name contains duplicate name parts? This is a total possibility, and so far every solution is assuming this is not true.

  • Custom User Avatar

    The description do not specify what happens when two names contain different number of parts.

    If name contains 3+ parts

    Is this name, or nameToIdentify? When two names have different number of parts this is ambiguous.