You are viewing a single comment's thread. Return to all comments →
Why changing to int make it faster? I changed the code and all the tests passed. I wonder why. Is it because intializing a list is slower than intializing an array? Or list.get() is slower than array[index]?