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.
sie schaffen der/die/das
google search?
Only if you keep the representation as in the description. But write it that way:
null <- 3 <- 2 <- 1
and it suddenly becomes apush
instead of anunshift
. ;)You're actually mixing up the basic vocabulary of linked lists/stacks (
push
= "add something to the head/on the top of the data structure") with the actual internal implementation where you could think about some sort of array where you'd insert the head at the index 0. And there you'd be doingunshift
yes. Tho, "nothing" to do with the current task.I'm having the same problem. I'm printing my variables to my test so I can see what's going on with the math. For some reason, the measurement for walking, which should be 132, is evaluating to 7.19999999 or something along those lines. I think that one of the tests is broken on the back end.
"If the walk is going to be over 2 hours, the function should recommend that you take the bus."
This comment is hidden because it contains spoiler information about the solution
It's not correct.
Step|Hands
1 | 1 0 0
2 | 2 0 0
3 | 0 1 0
4 | 1 1 0
5 | 2 1 0
...