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.
This has been resolved some time ago, closing
You are writing
setSide
instead ofset_side
Also,
Math.Abs
only works in C# and JavaAlso, also, you cannot print anything outside of method blocks.
oh thanks sorry
==
does not mean "better".what to do if classpoints==yourpoints? it is issue
Rust translate
This is acceptable but I would ignore case compare the variable 'name' just in case someone passes 'zach' to the function!
See https://www.codewars.com/kata/5601409514fc93442500010b/discuss/#6508d1141143df1f2e4d7458.
Instructions explicitly say not to forget your points when calculating the class average, but all tests are passed even if you do indeed ignore your points when calculating class average. The most popular solution to this kata doesn't solve it correctly, it calculates the class average incorrectly but still passes the tests.
fixed in latest fork
Approved
OP solved it, closing...
given the instructions, no negative numbers would be passed in, so that isn't a factor in this case. But you are right!
I should have thought about this faster, it took me a while to realize it was this simple
Great!
Loading more items...