ZeKaiNie/universal-examprep-skill / full
universal-exam-cram-coach-full
Verified帮助学生在临考前进行结构化极速复习:解析课程资料/大纲/重点,按章节生成 wiki 知识库与标准题库,组织针对性刷题与判分,并记录复习进度和错题。当用户即将考试、需要快速复习计划、练习题、错题复盘或考前小抄时使用(关键词:期末/备考/复习/刷题/划重点/错题;exam, cram, study plan, quiz, review)。不适用于长期学习规划、与考试无关的写作或编程任务。
benchmark/behavior_smoke/mock/sample_outputs/zero_basic_explain.txt
View on GitHub【0 基础重点题精讲】[#mc_q1] 栈的存取顺序
① 题面图:
本题无图,直接看题干条件(题目说“数据只在栈顶进出”)。
② 这题在问什么:
问你一个「只在栈顶进出」的结构,元素的存取顺序是什么。考点是栈 (stack) 的存取规则。
③ 图里要读的量:
题干只给一个条件:只在栈顶进出(一端开口)。抓住“只有一端能进出”这一句。
④ 核心公式:
栈的规则:后进先出 (LIFO)——最后压入的元素最先弹出。
⑤ 逐步演算:
1. 判断结构类型:题目说“只在栈顶进出” → 是栈。
2. 套用规则:栈 = 后进先出 (LIFO)。
3. 给出选项:选「后进先出 (LIFO)」。
⑥ 为什么这个答案成立:
栈只允许从同一端放入和取出;依次压入 1、2、3 后,3 离出口最近,所以先弹出 3,再弹出 2 和 1,这正是后进先出。
⑦ 知识点溯源:
第 1 章《线性表与栈》 · references/wiki/ch01_stack.md · 原文 [lecture01.pdf 第 8 页](../lecture01.pdf#page=8)
题目来源:hw01.pdf 第 2 页(homework)|答案来源:hw01_sol.pdf 第 1 页|🟢 来自资料
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |