Can anyone explain the solution for input ["vlxpwiqbsg","cpwqwqcd"]

  • 0


    I am confused with the solution for the input

    which is

    I will really appreciate the help.

  • 0

    In this example, we only know that v is smaller than c, so there are tons of solutions.
    Any solution with v in front of c is correct, such as "vclxpwiqbsgdc".

    The location of the other letters does not matter. The judge system only gives one of the possible solutions. You don't need to get the same one as "bdgilpqsvwxc"

  • 0

    Thanks :) Got it!

Log in to reply

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