How to implement an array without using inbuilt array function and still be able to access indexes in O(1) time?
I am unable to gain O(1) time complexity, I implemented it using linked list but the time complexity for accessing an index is O(|index|)
Aucun commentaire:
Enregistrer un commentaire