Frequency Queries

  • + 1 comment

    The error might be that the code is taking to long to run, so for larger inputs might fail. Try having the data structure within the function as a dictionary; and alter the cases accordingly.