using indexOf is really bad for time complexity. Here's a hint, whats a data structure you can use instead of an array that has a better time complexity when searching?
You should read the details, in particular the value of x
Loading collection data...
using indexOf is really bad for time complexity. Here's a hint, whats a data structure you can use instead of an array that has a better time complexity when searching?
You should read the details, in particular the value of x