Results with duplicates accepted


  • 0
    O

    My incorrect code generated a lot of duplicates, for example, input = "abababab", output = ["ababbaba","abbaabba","aabbbbaa","abbaabba","ababbaba","baabbaab","babaabab","bbaaaabb","aabbbbaa","ababbaba","abbaabba","babaabab","baabbaab","bbaaaabb","baabbaab","babaabab"]

    However, the code was accepted.

    I believe more tests on duplication detection should be added.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.