Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • Unfortunately, the problem statement only says that "[the] message ends when there is no space at the right up or down diagonal." Probably more examples, especially those clarifying possible edge cases, would help.

  • It's expecting string 'BruuJ', because in the matrix there is another row with letter 'K' in it. In order to continue decoding, it should go to the last row, but there's no letter at that index, so decoding must stop.

  • This comment is hidden because it contains spoiler information about the solution

  • Hi everybody,

    I have a question regarding the random tests.

    Here's a random test string:

    B p E D y o q F q n C H v x K K D
    C r I y o w A n y F t B B q J C u B t z I A F I
    F H u s s y H I D n B
    L o J u F D F J A I s G s u o x E v
    L r x G J K y x o I E n w G H J M M z w F M r G
    K

    Here's the message I got:

    Expected: 'BruuJ', instead got: 'BruuJDHnqFBGwuHxMvz'

    I don't understand why 'BruuJDHnqFBGwuHxMvz' is incorrect, because as far as I can see you can easily bounce up and down from the first letter B to the last letter z. Maybe the author of the problem could clarify the problem statement.

    Cheers.

    P.S. I'm going to post my JavaScript code hidden under Spoiler in case someone would care to look into it. (Done!)

  • This comment is hidden because it contains spoiler information about the solution

  • thanks for taking your time!!!!!! means a lot yea ill try:)))

  • You're in the "right direction".

    Note that the length of the lines in the code is different, so you need to control IndexError.

    You can use print to debug your function. Try to understand and better control values of your variables on each loop iteration.

  • This comment is hidden because it contains spoiler information about the solution

  • thanks Steffan Senpai:)))

  • get_diagonale_code is mispelled

  • i have never seen this can someone tell me whats with the argument thing in this function definition, sorry if it's silly

    def get_diagonale_code(grid: str) -> str:
    
  • Edited.

  • Initial solution includes a useless variable.

  • Loading more items...