Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Maybe use something different than a nested for loop to look if some value already was present. Something with a faster lookup.
This comment is hidden because it contains spoiler information about the solution
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.
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!
Print the input. The numbers are pased as integers, yes.
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?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution