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

Wrong space complexity #163

Open
bk167465 opened this issue Jan 11, 2025 · 0 comments
Open

Wrong space complexity #163

bk167465 opened this issue Jan 11, 2025 · 0 comments

Comments

@bk167465
Copy link

Describe the problem

In the file array/product_of_all_other_elements.go - Line 9 - You initialised an array of length n.
Doesn't it make space complexity O(N). But you have written it O(1) in Line 3.

A clear and concise description of what the problem is.

Expected behavior

A clear and concise description of what you expected to happen.

Running code examples

If applicable, try to add executable code to and share the URL to illustrate your point. e.g. https://go.dev/play/p/UfJNprdqDJ6.

What effort have you taken to solve this problem?

Describe what effort you have done so far to solve this challenge?

Additional context

Add any other context about the problem here.

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

No branches or pull requests

1 participant