mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08: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