You are viewing a single comment's thread. Return to all comments →
The following should be removed.
if (value == 0) { frequencies.add(1); }
In the contstraints section it mentions that "z" is >= 1.
Also if 0 was possible you would be adding a 1 and then a 0 from your next statment.
Frequency Queries
You are viewing a single comment's thread. Return to all comments →
The following should be removed.
In the contstraints section it mentions that "z" is >= 1.
Also if 0 was possible you would be adding a 1 and then a 0 from your next statment.