feat: modify some Dart codes and add Dart code blocks to the docs (#543)

This commit is contained in:
liuyuxin
2023-06-02 14:56:29 +08:00
committed by GitHub
parent 53e18bc6d6
commit 281c0c618a
25 changed files with 339 additions and 54 deletions

View File

@ -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;
}