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 comment is hidden because it contains spoiler information about the solution
Did not like this AT ALL. Guessing at algo, I went thru hassle of removing
most-connected-to-nodes, but at end, if there's a diamond,
impossible to tell inner from outer.
This comment is hidden because it contains spoiler information about the solution
I've had to come in behind people who coded like this and spend hours and hours writing test cases then refactoring it so the poor schmo who came along behind me could read the darn thing. As entertainment, sure, fine. As production code, if I managed or team-led someone who did this I'd have a long conversation with them about what their goals were and how that matched with the organization's goals.
Doesn't handle:
this is utterly non-obvious to the poor schmo who comes along after you.
Taking 10 minutes to analyze 2 lines of code won't make you any friends.
Your mission, should you choose to accept it, is to create something blindingly obvious to a casual observer.
Zero points given for terse code.
Partial credit possible if terseness required due to extreme and user-experience-altering runtime inefficiency.