Agent skill

algorithm-complexity

Consider time and space complexity when writing algorithms Use when optimizing code performance. Performance category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/algorithm-complexity

Metadata

Additional technical details for this skill

category
Performance
priority
medium
is built in
YES
session guardian id
builtin_algorithm_complexity

SKILL.md

Algorithm Complexity

Consider time and space complexity when writing algorithms. Avoid O(n²) operations inside loops (nested iterations over the same data). Use appropriate data structures: HashMaps for O(1) lookups, Sets for membership testing, sorted arrays with binary search for ordered data. Profile before optimizing—but recognize obviously inefficient patterns during code review.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results