返回 Skill 列表
extension
分类: 开发与工程无需 API Key

data-structure-chooser

为任务推荐基本数据结构。当初级开发人员在选择列表、映射或集合时需要帮助时使用。

person作者: jakexiaohubgithub

Data Structure Chooser

Purpose

Recommend basic data structures for a task.

Inputs to request

  • Core operations and their frequency.
  • Ordering and uniqueness requirements.
  • Expected data size and memory limits.

Workflow

  1. Clarify operations: lookup, insert, iterate, order.
  2. Recommend a structure with time/space tradeoffs.
  3. Provide a small example usage.

Output

  • Recommendation and rationale.

Quality bar

  • State the complexity assumptions clearly.
  • Offer an alternative when tradeoffs are close.