Reporting an incorrect test case that is blocking my submission


  • 0
    B

    Input: "ABC", 2
    Output: "ABC"
    Expected: "ACB"

    How the expected answer correct?
    A
    B C
    So the answer should be ABC.
    What am I missing?


  • 0
    Z

    I think it outputs like
    1 ____ 2n-1
    2 2n-2 .
    3 .
    ...
    . n+1
    n ____

    So when numRows == 2, the second column is empty and it turns to:
    1 3 5 ...
    2 4 6 ...


Log in to reply
 

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