Ad
  • Default User Avatar

    Thanks for your help. Maybe when I have more time... If you have enough time feel free to introduce your modifications.

  • Default User Avatar

    Description completed for "This team didn't play!".
    @dinglemouse: float numbers are not a contrived example; I saw on the Internet that kind of typo on a result sheet that has the appearance of something official. Anybody can make mistakes:-)

  • Default User Avatar

    for that point, look at the example tests too.

  • Custom User Avatar

    The scores must be integers. If a score is a float number (abc.xyz...) you will return: "Error(float number):the concerned string"

    IMO that rule above seemed silly.

    Apparently we can trust the format of everything else in the result sheet - comma separators (tick), team names with no spelling mistakes (tick), team names and scores all correctly ordered (tick), spaces in all the right places (tick), no garbage characters (tick) .... Oh, but we must check for floating point numbers for the score (wtf?). See - it doesn't make sense - it's just a contrived complication that seems out of place.

  • Custom User Avatar
    expected:<[Boston Celt:This team didn't play!]> but was:<[This team didn't play!]>
    

    But the instructions say:

    If a team name can't be found in the given string of results you will return "This team didn't play!"

  • Default User Avatar

    I cannot tell if you might be on a path, but the solution is much simpler...

  • Default User Avatar

    Hi,

    • maybe increase the number of random tests?
    • would be nice to have some other fixed tests with:
      • L != 0 but points scored == 0
      • D != 0 but all games are draw 0-0

    Both tests should not return "...:This team didn't play!" (currently, my solution doesn't hnadle the second case)

  • Default User Avatar

    I still remember that year when the Lakers lost the 3 points needed for a spot in Champion's League playoffs with that draw in the last game of regular season against Manchester United.

    Just kidding :P Merry Christmas :)

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Do you mean 10100 or 10(10100)? I mean is 10100 the total number or the argument you send to the function? If it is the second then yes I would have to rethink everything from scratch, the closest I got my code running without having to go make a coffee till the results get calculated was 10**500.000.

    And no this is not my real name, neither my real gender actually (if I'm not mistaken Alyona is a slavic version of Helen), it is just a random generated internet nickname.

  • Custom User Avatar

    Just checked to be sure to tell you the exact number: up to 10**100, so you might want to optimize your algo. A lot ;)

    P.S.: are you by any chance the Alyona I spoke a few weeks ago on Skype to organize an event?

  • Default User Avatar
  • Default User Avatar

    Thanks for your comment and approval, Regards suic

  • Custom User Avatar

    This was highly entertaining/amusing, thanks.

  • Loading more items...