Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Check the option when one of the terms begins with 2 zeros '00'
The solution is beautiful, but creating a dictionary probably takes a long time.
The problem can be solved by looking through all the elements of arr.
This comment is hidden because it contains spoiler information about the solution
8**7 = 2' 097' 152. And this is already more than the amount you mentioned.
This comment is hidden because it contains spoiler information about the solution
There are no problems with the correctness of the solution.
There are some comments about speed.
Your solution gives a solution time of O(log(n)).
And you can achieve O(n) time.
In operators:
if (a[i] != b[j]) {
difference.add(a[i]);
You output element a[i] as many times as it does not match the elements b. And it must be equal to 1 time, and then only if it does not coincide with any of the elements b.