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.
Kumited a Java translation!
This code is FAR from unreadable.... I really don't understand the difficulty here. The only thing that might be hard to understand for someone who's even remotely new to coding in Java (or in general) is the ternary operator. Even that can be easily understand with a quick google search.
This comment is hidden because it contains spoiler information about the solution
Nvm, I asked some friends and I understand perfectly now. Thank you for the help though, @dinglemouse
Oh, I understand what the code is doing, it's the math itself I don't think I'm fully grasping. Like why is he multiplying the weights by 3?
God I need to strengthen my math skills. This never even crossed my mind x_x
edit: If anyone sees this comment and understands the code above, could you explain it please. I'm actually having some trouble understanding the math behind it.