Ad
  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    To explain with an analogy, using an array to do lookups is like looking through an entire library shelf by shelf to find a specific book. Conversely, using a dictionary/hash map is like asking the librarian to locate the book, having her look up its Dewey Decimal number, and directing you to the exact shelf and row the book is on! Much more efficient!

  • Default User Avatar

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

  • Custom User Avatar

    printer_error(s) is the call to the function. => is a shorthand of returns.

    return the error rate of the printer as a string representing a rational

    That means"0/14" in the example. If you have any doubt, look at the sample tests.