Skip to content

Complete exercises 00-33 - #105

Open
aoshuo-tian wants to merge 5 commits into
InfiniTensor:mainfrom
aoshuo-tian:main
Open

Complete exercises 00-33#105
aoshuo-tian wants to merge 5 commits into
InfiniTensor:mainfrom
aoshuo-tian:main

Conversation

@aoshuo-tian

@aoshuo-tian aoshuo-tian commented Aug 11, 2026

Copy link
Copy Markdown

完成 learning-cxx exercises 00-33。

特殊说明:

  1. exercise05 按题意移除了第二个 constexpr。由于朴素递归计算 fibonacci(90) 的运行时间过长,进一步将 ANS_N 从 90 调整为 20,以确保本地测试和 CI 能够在合理时间内完成。

  2. exercise26 中 sizeof(std::vector) 的结果与编译器和标准库实现有关。代码根据编译环境设置预期值:Windows/MSVC 使用 32,Ubuntu CI 使用 40,从而兼容两个平台的测试。

CI 测试结果

GitHub Actions 已在 Ubuntu 和 Windows 环境中运行成功:

查看成功的 CI 运行记录

本地执行 xmake run summary 的结果为:34/34 全部通过。

@aoshuo-tian aoshuo-tian reopened this Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant