Contrary to your claim that "he can figure it out", my experience of interviewing candidates says that most can't.

That's exactly why I said I would do it for a fee. It's real work correctly doing that sort of mathematical modelling.

I note that your "transitive closure" method does not include a complete solution either.

I also defend an alternative method of properly setting up hash keys (maybe AoA as values?) and doing the conventional cascading hash sort, including a subsort on the AoA's.

It also begs questions like does point difference matter in the wins? Or is it just a binary value. etc. etc.

So I may have flunked your interview......but that's because I'm more creative, or at least differently trained than you.

No offense.... but your transitive sort dosn't really lead to a general purpose solution, and there is no saying whether your transitive method is the best. I admit you are one of the few who have attempted a solution to the team rankings problem.


I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness

In reply to Re^5: Adding Special Rules to Sort by zentara
in thread Adding Special Rules to Sort by ctfishman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.