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.
No, you shouldn't return anything. The fact that the
Node
obects are reference types by virtue of being class instances has no bearing on the fact that you can't expect to simply assign to them within your function, as this simply changes the object the local variablesfront
andback
refer to.You need to make
front
have the value of the front of the list and also point towards the second, etc.throw 'whatever'
works.throw new Error()
works, but your current code only does this... Please read the description.Indeed, the problem is you renamed the properties, look at the initial code:
Now it doesn't matter anyway, try again.
Which language? What's your code?