mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-20 10:36:09 +00:00
Many bug fixes and improvements (#1270)
* Add Ruby and Kotlin icons Add the avatar of @curtishd * Update README * Synchronize zh-hant and zh versions. * Translate the pythontutor blocks to traditional Chinese * Fix en/mkdocs.yml * Update the landing page of the en version. * Fix the Dockerfile * Refine the en landingpage * Fix en landing page * Reset the README.md
This commit is contained in:
@@ -72,20 +72,21 @@ def build_tree(n)
|
||||
end
|
||||
|
||||
### Driver Code ###
|
||||
if __FILE__ == $0
|
||||
n = 5
|
||||
|
||||
n = 5
|
||||
# 常數階
|
||||
constant(n)
|
||||
|
||||
# 常數階
|
||||
constant(n)
|
||||
# 線性階
|
||||
linear(n)
|
||||
linear_recur(n)
|
||||
|
||||
# 線性階
|
||||
linear(n)
|
||||
linear_recur(n)
|
||||
# 平方階
|
||||
quadratic(n)
|
||||
quadratic_recur(n)
|
||||
|
||||
# 平方階
|
||||
quadratic(n)
|
||||
quadratic_recur(n)
|
||||
|
||||
# 指數階
|
||||
root = build_tree(n)
|
||||
print_tree(root)
|
||||
# 指數階
|
||||
root = build_tree(n)
|
||||
print_tree(root)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user