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

Time complexity for product_of_array_except_self.py #1

Open
rsrbk opened this issue May 20, 2024 · 0 comments
Open

Time complexity for product_of_array_except_self.py #1

rsrbk opened this issue May 20, 2024 · 0 comments

Comments

@rsrbk
Copy link
Collaborator

rsrbk commented May 20, 2024

In file(https://github.com/eigent-ai/lambda-working-repo/blob/main/product_of_array_except_self.py) an algorithmic coding task is solved in O(n^2) complexity.

This implementation need to be rewriten so that the time complexity is O(n). The output will be the new content of product_of_array_except_self.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment