You are viewing a single comment's thread. Return to all comments →
Did exactly the same :P but I used array instead of map. So, the runtime here is O(1), right? We're just looking up the array.. Am i right here?
Seems like cookies are disabled on this browser, please enable them to open this website
Equalize the Array
You are viewing a single comment's thread. Return to all comments →
Did exactly the same :P but I used array instead of map. So, the runtime here is O(1), right? We're just looking up the array.. Am i right here?