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

Fix orderbook numbering/totalling issue. Reduce time complexity of getting correct sequence of orders. #3

Closed

Conversation

prateekkumaroriginal
Copy link

@prateekkumaroriginal prateekkumaroriginal commented Jun 26, 2024

Fixes #4

Reduced time complexity:-
Bids: From O(n/2) to O(1)
Asks: From O(2n) to O(n)

@prateekkumaroriginal
Copy link
Author

@hkirat Please review this.

@hkirat
Copy link
Contributor

hkirat commented Jun 28, 2024

Looks great
Will review if I get the time but looks like it's in the right direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sequence of Asks is not proper in orderbook in frontend. Total is getting calculated in reversed order.
2 participants