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

Scramble string complexity #35

Open
ethanboyuan opened this issue Nov 7, 2014 · 2 comments
Open

Scramble string complexity #35

ethanboyuan opened this issue Nov 7, 2014 · 2 comments

Comments

@ethanboyuan
Copy link

I have a doubt about the complexity of the recursive method. This should not be n^6. The worst case should be 6^n instead of n^6.

@soulmachine
Copy link
Owner

Well, I'll take a look at it

@hqztrue
Copy link

hqztrue commented Jul 29, 2020

The time complexity for dynamic programming should be O(n^4).

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

3 participants