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.
Cool. Didn't even realize I don't need that loop any longer. Just assigns answer n times... sigh
Hmm. Today I learned about Two's Complement.
Nice, elegant solution! My first instinct was to hinge this problem on
young && beautiful
, but I over-complicated the problem and abandoned that route. :(Clearly too tired to code properly. Unneeded complexity. Not designed to spec. Not immediately extensible as logic is inadequate for determining max value when comparing more than 2 items. Good job, self! Time for bed...
Ah, crap. I tried a similar solution, but screwed up the order of operands for
%
, didn't catch my mistake, and abandoned that train of thought...This comment is hidden because it contains spoiler information about the solution
I don't see an option to delete my comment. After submitting this comment, it occured to me that I had misattributed the outcome of a nested function to its parent function, leading to an unfounded "logical leap". Disregard my original question, parent commenter.