mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-17 01:06:07 +00:00
feat: modify some Dart codes and add Dart code blocks to the docs (#543)
This commit is contained in:
@@ -89,7 +89,7 @@ TreeNode? buildTree(int n) {
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
void main() {
|
||||
int n = 5;
|
||||
// 常数阶
|
||||
constant(n);
|
||||
@@ -102,5 +102,4 @@ int main() {
|
||||
// 指数阶
|
||||
TreeNode? root = buildTree(n);
|
||||
printTree(root);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user