Ad
  • Default User Avatar

    Yes but you cook pancakes one side at a time, so its not the number of pancakes you're cooking; it's the number of sides

  • Default User Avatar
  • 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

    There are even more ways than that

  • Default User Avatar

    You're not supposed to extend the table, update it and select all from it, you're supposed to just run a SELECT query that provides a resultset of the original and reversed data

  • Default User Avatar

    thank you, that is a really plausible reason

  • Default User Avatar

    As a quick explainer for this, we use Zip/Skip to arrange a sequence of tuples where we have the Nth term a and the N+1th term b and then we compare them to ask "did we Decrease, stay Same or Increase when transitioning from a to b..?"

    Then we use Aggregate to look at, for the whole sequence, wht mix of Decreases, Sames, and Increases we got and we switch a truth table of e.g. (0<0,0<0,0<1) => (false,false,true) => "there were no decreases, no sames, there were increases" so this was a "strictly increasing" sequence

  • Default User Avatar

    Thanks!

    0<1 is one char shorter than true and 0<0 is two chars shorter than false..

    Seems also, uncharacteristically for me, I didn't explain it...

  • Default User Avatar

    I really like this solution. I wonder why 0<1 was written instead of true and 0>1 instead of false.

  • Default User Avatar

    Range applies to the full time span indicated, so if the fastest time was 1:02:03 and the slowest time was 3:05:07 then the time range is 2:03:04.
    If the fastest time was 1:30:40 and the slowest time was 2:20:30 then the time range is 0:49:50.

    In real world terms the range question is asking "how long did the person at the finish line with the stopwatch have to wait, between the moment the fastest runner finished, and the moment the slowest runner finished? How much time passed between the winner finishing and the last person finishing?"

    You have to do time math on the entire period of time, not just the hours/minutes/seconds components separately

  • Default User Avatar

    Managed to get it done in 1 line of best janktice ;)

  • Custom User Avatar

    My python code for this kata is 100% best practice fr fr

    (hint: its 113 lines long with janky code)

  • Default User Avatar

    Can ye chuck a bit of markdown around the "" empty strings in If the given string is "" you will return "" so that it doesn't read like some accidentally escaped version of the phrase 'If the given string is "you will return"' ?

  • Custom User Avatar

    Thanks for the tips, I haven't really done any programming in awhile so I'm quite rusty.

  • Loading more items...