data-structures-algorithms

Use when solving algorithmic problems, optimizing code, or choosing the right data structure for performance.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "data-structures-algorithms" with this command: npx skills add piuaibot-stack/data-structures-algorithms

Data Structures & Algorithms

Complexity Analysis

  • Always analyze time AND space complexity
  • Big O: O(1) < O(log n) < O(n) < O(n log n) < O(n²) < O(2ⁿ)
  • Amortized analysis for dynamic structures

Core Data Structures

StructureAccessSearchInsertDeleteUse When
ArrayO(1)O(n)O(n)O(n)Random access, cache locality
Hash MapO(1)O(1)O(1)O(1)Key-value lookup
Linked ListO(n)O(n)O(1)O(1)Frequent insert/delete
Binary Search TreeO(log n)O(log n)O(log n)O(log n)Sorted data
HeapO(1) topO(n)O(log n)O(log n)Priority queue
Graph-O(V+E)O(1)O(E)Relationships, paths

Algorithm Patterns

  • Two Pointers — sorted arrays, palindromes
  • Sliding Window — subarray/substring problems
  • Binary Search — sorted data, search space reduction
  • DFS/BFS — tree/graph traversal
  • Dynamic Programming — overlapping subproblems, optimal substructure
  • Greedy — locally optimal choices lead to global optimum
  • Divide & Conquer — merge sort, quick sort

Choosing the Right Structure

  1. Need O(1) lookup? → Hash Map
  2. Need sorted order? → BST / Sorted Array
  3. Need LIFO? → Stack
  4. Need FIFO? → Queue
  5. Need priority? → Heap
  6. Need relationships? → Graph
  7. Need prefix search? → Trie

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

jirac

Jira issue management skill for OpenClaw using the jirac CLI. Requires the `jirac` binary to be installed and authenticated before use. Use when listing, vie...

Registry SourceRecently Updated
Coding

Clickup

Clickup integration. Manage project management and ticketing data, records, and workflows. Use when the user wants to interact with Clickup data.

Registry SourceRecently Updated
Coding

DingTalk Workspace CLI

管理钉钉产品能力(AI表格/日历/通讯录/群聊与机器人/待办/审批/考勤/日志/DING消息/开放平台文档/钉钉文档/钉钉云盘/AI听记/邮箱等)。当用户需要操作表格数据、管理日程会议、查询通讯录、管理群聊、机器人发消息、创建待办、提交审批、查看考勤、提交日报周报(钉钉日志模版)、读写钉钉文档、上传下载云盘文件、...

Registry SourceRecently Updated
Coding

Mistral Mcp Openclaw

Configure OpenClaw to use the community mistral-mcp stdio server for Mistral OCR, Codestral FIM, Voxtral audio, moderation, classification, files, batch, and...

Registry SourceRecently Updated