Timeline for Play the word chain
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 7, 2016 at 4:57 | comment | added | user81655 | @TanMath Fixed, although it breaks one of the test cases. | |
Jan 7, 2016 at 4:56 | history | edited | user81655 | CC BY-SA 3.0 |
Fixed bug
|
Jan 7, 2016 at 4:32 | comment | added | TanMath | This solution is invalid for multiple output sequences | |
Jan 7, 2016 at 1:05 | comment | added | grc | Ah nvm - I thought pop could take an index as its first argument like in python. | |
Jan 7, 2016 at 1:02 | comment | added | user81655 |
@grc Thanks, I really like the o[r.length] tip! I don't know how I could use pop though.
|
|
Jan 7, 2016 at 1:02 | history | edited | user81655 | CC BY-SA 3.0 |
Improved based on comment.
|
Jan 7, 2016 at 0:54 | comment | added | grc |
I think you could use pop instead of splice and o[r.length]? instead of o.length>r.length? .
|
|
Jan 7, 2016 at 0:31 | history | edited | user81655 | CC BY-SA 3.0 |
Improved and added explanation
|
Jan 7, 2016 at 0:21 | history | answered | user81655 | CC BY-SA 3.0 |