enumerate creates a pair index, value for each element in the list/array passed in. That's how he's incrementing p, by adding the index to it each time rather than actually incrementing it by 1 in each iteration. I honestly wished I would have thought of this.
It seems I broke the rule from the problem statement, but I can't remember to have read that by the time I implemented my solution (it was 8 yeas ago, by the way).
enumerate creates a pair index, value for each element in the list/array passed in. That's how he's incrementing p, by adding the index to it each time rather than actually incrementing it by 1 in each iteration. I honestly wished I would have thought of this.
nice job
Man, it took me like 20 minutes on StackOverflow to come up with a stupidly over-complicated version of this....
It seems I broke the rule from the problem statement, but I can't remember to have read that by the time I implemented my solution (it was 8 yeas ago, by the way).
This is about what I was trying to do, but far more efficient.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This actually doesn't work, but it passed the test....?
I was wondering how to create a house but I'm not that advanced at SQL yet lol
This comment is hidden because it contains spoiler information about the solution
OK, but that feels like cheating...
Oh, ok. I was trying to use regular expressions to get all whitespace, but it didn't work. I'll fix it!
Well, your num_sym list logic is wrong. It contains the letter s and that's why it fails. Your code isn't shifting it.
Mine keeps saying that S should be K... anybody else have this issue?
That's what I did, but spaced out to make it more readable.
Loading more items...