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.
would not count method run big O of n times?
can you explain why this works?
why is this under dynamic programming?
Clearly said not to use str and still this answer gets the most upvotes. Ironic.
python
ya true. For each element we have to run through the other array.
How about checking if each element of arr1 has a square in arr2 and each element has a sqrt in arr1? This is big O of n where as sorting is at best nlogn
This comment is hidden because it contains spoiler information about the solution