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.
same issue
Difficulty is decided by the community in general, though there may be some outliers in terms of rankings rarely from time to time, this one is correctly ranked !
The user seems to be not active anymore.
Also, this is an optimization task, and obviously a naive solution won't pass the tests.
If at first you don't succeed, think about the Math. If at second you don't succeed try another Kata, he literally has made almost a thousand of them.
If you always got timeout, please optimize your algorithm ;-)
As in many of myjinxin2015's katas, the key is to find out what the solution should be like so you're not actually bruteforcing the answer. Usually looking at the test cases will tell you if you need to avoid bruteforcing.
I'm using my eye to find the different ;-)
first different: A[5] is
383
, B[5] is822
second different: A[7] is
310
, B[5] is479
third different:....
Now I can say it should return
false
, because description said:You Don't need to sort the Array, I think ;-)