Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Dart Codes for section_iteration_and_recursion #696

Merged
merged 1 commit into from
Aug 27, 2023
Merged

feat: Add Dart Codes for section_iteration_and_recursion #696

merged 1 commit into from
Aug 27, 2023

Conversation

gvenusleo
Copy link
Contributor

If this PR is related to coding or code translation, please fill out the checklist and paste the console outputs to the PR.

  • I've tested the code and ensured the outputs are the same as the outputs of reference codes.
  • I've checked the codes (formatting, comments, indentation, file header, etc) carefully.
  • The code does not rely on a particular environment or IDE and can be executed on a standard system (Win, macOS, Ubuntu).

@vercel
Copy link

vercel bot commented Aug 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
hello-algo ⬜️ Ignored (Inspect) Visit Preview Aug 27, 2023 1:45pm

@gvenusleo
Copy link
Contributor Author

The terminal output of each file is as follows:

iteration.dart

for 循环的求和结果 res = 15

while 循环的求和结果 res = 15

while 循环(两次更新)的求和结果 res = 5

双层 for 循环的结果 (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5),

recursion.dart

递归函数的求和结果 res = 15

尾递归函数的求和结果 res = 15

斐波那契数列的第 5 项为 3

@krahets krahets added the code Code-related label Aug 27, 2023
Copy link
Owner

@krahets krahets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Code-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants