We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Frequency Queries
You are viewing a single comment's thread. Return to all comments →
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.