Explore >> Select a destination


You are here

cp-algorithms.com
| | www.adamconrad.dev
2.7 parsecs away

Travel
| | Follow along with Steven Skiena's Fall 2018 algorithm course applied to the JavaScript language.
| | www.oranlooney.com
2.6 parsecs away

Travel
| | A common example of recursion is the function to calculate the \(n\)-th Fibonacci number: def naive_fib(n): if n < 2: return n else: return naive_fib(n-1) + naive_fib(n-2) This follows the mathematical definition very closely but it's performance is terrible: roughly \(\mathcal{O}(2^n)\). This is commonly patched up with dynamic programming. Specifically, either the memoization: from functools import lru_cache @lru_cache(100) def memoized_fib(n): if n < 2: return n else: return memoized_fib(n-1) + memoiz...
| | qsantos.fr
2.5 parsecs away

Travel
| |
| | www.onlandscape.co.uk
22.1 parsecs away

Travel
| [AI summary] The article discusses the privacy and cookie policies of the online magazine 'On Landscape', which focuses on landscape photography, and includes information about its registration and social media presence.