![]() |
Quote:
oh, and when is exercise 4 coming? And could 4 have two difficults? One simplier and one harder? |
Quote:
the previous is a lie but I'm tempted to make something ridiculous like O(n!) and declare it O(1) and laugh @ noobs who believe it |
Okay, well this thread has been dead for sufficiently long time. Here is what I came up with; it takes quadratic time.
PHP Code:
|
Maybe try doing it in a language that doesn't allow you to dynamically create new variables.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
THE POWER OF THE SUN IN THE CHRIS. |
I think it is feasible to shrink time to ~ aN + O(N log N). How might we go about doing this? How do we get a logarithmic factor in our order? How can this help us speed up our algorithm?
This post points out a pitfall in computing the algorithm efficiency. The questions above and this problem are related. How can we minimize the effects of substring()? |
| All times are GMT +2. The time now is 03:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.