Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize version lookup for a submission #187

Open
khoj-pez opened this issue Oct 27, 2017 · 0 comments
Open

Optimize version lookup for a submission #187

khoj-pez opened this issue Oct 27, 2017 · 0 comments
Assignees

Comments

@khoj-pez
Copy link
Collaborator

khoj-pez commented Oct 27, 2017

Currently the latest version number for each user is stored in a list. Hope if to change it a map to get version number of a user in constant time rather than looping over the list.

@khoj-pez khoj-pez self-assigned this Oct 27, 2017
@khoj-pez khoj-pez changed the title Change O(n) time lookup for a latest submission to O(1). Optimize version lookup for a submission Oct 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant