Ad
  • Default User Avatar

    Maybe use something different than a nested for loop to look if some value already was present. Something with a faster lookup.

  • Default User Avatar

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

  • Default User Avatar

    Hi,

    Sometimes (the number failed varies each attempt) - when I run my code, after some number of letters my code will forget the space. However, if I then take the small piece of the string which presents problematic and solve it in isolaiton, the space does appear between the numbers.

    Just wondering if anyone else had this issue.

    For example say amongst the larger string there was: "....cV...." my code returns 322. However, running the cV and 6 other characters either side in isolation presents no issue and the space between the numbers occurs.

    Just wondering if anyone else had a similar issue.

    I use dictionaries to store keys and values of the letter and number, respectively.

  • Default User Avatar

    Yeah, was my poor interpretation - realised there was a negative in front of the first number.

    Resolved now, thanks for the swift response though, much appreciated!

  • Custom User Avatar

    Print the input. The numbers are pased as integers, yes.

  • Default User Avatar

    I manage to pass all tests except for "Weird: no 4"

    Can anyone provide some tips?

    Is the whole number negative or am I misunderstanding something?
    My code apparently only returns '9'.

    I though the number was passed in as an integer not a string?

  • Default User Avatar

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

  • Default User Avatar

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