Skip to content

docs: add thinking walkthrough for problems 1-99 - #5568

Merged
yanglbme merged 16 commits into
mainfrom
docs-thinking-0000-0099
Sep 12, 2026
Merged

docs: add thinking walkthrough for problems 1-99#5568
yanglbme merged 16 commits into
mainfrom
docs-thinking-0000-0099

Conversation

@yanglbme

Copy link
Copy Markdown
Member

Summary

  • Add a 思考 / Thinking section to every method in problems 1-99, inserted after the method heading and before the existing algorithm write-up.
  • Each section walks from the naive idea and its bottleneck to the observation that leads to this method, without restating the code that follows.
  • Record the format in AGENTS.md and solution/template.md so later 100-problem batches stay consistent. This is the first of the per-100-problem PRs (next: 100-199).

Test plan

  • Spot-check Two Sum, 3Sum, Trapping Rain Water, Climbing Stairs, and Largest Rectangle: thinking matches the actual Solution.py and does not change code tabs.
  • Confirm every ### 方法 / ### Solution heading in solution/0000-0099 has a matching 思考 / Thinking block.
  • Confirm <!-- solution:start --> / <!-- tabs:start --> markers and all Solution.* files are unchanged.

Made with Cursor

Copilot AI lite review requested due to automatic review settings September 11, 2026 07:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@idoocs idoocs added core team Issues or pull requests from core team md Issues or Pull requests relate to .md files labels Sep 11, 2026
@yanglbme
yanglbme force-pushed the docs-thinking-0000-0099 branch from 4d8b65c to b2c26d4 Compare September 12, 2026 01:43
@yanglbme
yanglbme merged commit d2451e5 into main Sep 12, 2026
3 checks passed
@yanglbme
yanglbme deleted the docs-thinking-0000-0099 branch September 12, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core team Issues or pull requests from core team md Issues or Pull requests relate to .md files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants