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.
You could try asking on Discord server, or simply try another kata.
Solving this problem with Javascript but i can't figure it out. Any that can help?
Thanks for the detailed expanation.
Should JS ( and other languages ) do the same? I suspect
repr
is analogous toJSON.stringify
( and Haskellshow
, and others ).fixed by mauro-chabby combo
Great idea: fork making it so
Good that you wrote it. I had the same problem :D
1 -> 2 -> 3 -> None should equal 1 -> 2 -> 3 -> None
0 -> 1 -> 4 -> 9 -> 16 -> None should equal 0 -> 1 -> 4 -> 9 -> 16 -> None
At least in python:
ListReprAsLinkedList
should userepr
(' -> '.join(repr(i) for i in self + ['None'])
).My first solution passed strings instead of ints to
Node
constructor, and I got useless error messages like1 -> 2 -> 3 -> None should equal 1 -> 2 -> 3 -> None
.Oh data type was str, not int -> error message is a bit obscure
Approved, thanks!
let's also hope the flight hasn't taken off yet when that happens
I agree. True OOP work.
Loading more items...