You are viewing a single comment's thread. Return to all comments →
Arrrrgh.... changed the function to take an int, AND had it return an int (by counting the number of queries on input, and then passing that into the function) and am still timing out on 12 and 13. Stripped down my code so it now uses only a single non-primitive structure (one Map to keep track of the frequency of each number), and it's still not passing.
I'll have to come back to this one.