Output sorting?


  • 0
    D

    For some reason, the OJ is not accepting my solution. It is expecting a particular sorting of the output.

    Screenshot: https://cl.ly/4043111A462C


  • 0

    Nah, you probably have something really different. If you post your output and the expected output as text (not just as image), we can easily check this.


  • 0
    D

    Output:
    ["a a a a a a a","a a a a a aa","a a a a aa a","a a a aa a a","a a a aa a a","a a a aa a a","a a a aa a a","a a a aa aa","a a a aaaa","a a aa a aa","a a aaaa a","a aa a a aa","a aa aa a a","a aa aa a a","a aa aaaa","a aaaa a a","a aaaa aa","aa a a a aa","aa a a aa a","aa a a aa a","aa a a aa a","aa a aa a a","aa a aa aa","aa a aa aa","aa a aaaa","aa aa a aa","aa aa aa a","aa aaaa a","aaaa a a a","aaaa a aa","aaaa aa a"]
    Expected:
    ["a a a a a a a","aa a a a a a","a aa a a a a","a a aa a a a","aa aa a a a","aaaa a a a","a a a aa a a","aa a aa a a","a aa aa a a","a aaaa a a","a a a a aa a","aa a a aa a","a aa a aa a","a a aa aa a","aa aa aa a","aaaa aa a","a a aaaa a","aa aaaa a","a a a a a aa","aa a a a aa","a aa a a aa","a a aa a aa","aa aa a aa","aaaa a aa","a a a aa aa","aa a aa aa","a aa aa aa","a aaaa aa","a a a aaaa","aa a aaaa","a aa aaaa"]


  • 0

    Yeah, it's clearly different. You have some duplicates and some others are missing.

    P.S. I would've expected the "debuggerman" to look into this more deeply himself :-P


  • 0
    D

    oh thanks. probably too lazy :)


Log in to reply
 

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