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.
In C# the int value of char is the UTF-16 code, and ASCII codes is a subset of it.
replying to Jon - surely the int value of the character is the ASCII value?
Chars can be interpretted as arrays when doing arithmetic. Thus when you're attempting to sum digits as chars together, you're summing the integer value of the characters, not the actual digits. - '0' subtracts the int value of '0' from the int value of the character being popped, giving you the actual value you want as an integer.
This comment is hidden because it contains spoiler information about the solution
That's true, thanks