Array Algorithmic Patterns
Implements optimized array manipulation patterns including sliding windows and two-pointer techniques for linear-time complexity.
This skill provides Claude with specialized templates and guidance for executing production-grade array algorithms with optimal time and space complexity. It covers essential patterns such as two-pointer approaches (fast/slow and converging), sliding window techniques (fixed and variable size), and prefix sum calculations for efficient range queries. By using this skill, developers can ensure their array-based logic follows O(n) patterns, includes robust parameter validation, and follows standardized debugging checklists to eliminate common off-by-one errors and infinite loops.
主要功能
01Complexity Annotations for O(n) Performance Assurance
02Two Pointers Implementation (Same and Opposite Directions)
032 GitHub stars
04Fixed and Variable Sliding Window Patterns
05Production-grade Parameter Validation and Retry Logic
06O(1) Range Queries using Prefix Sum Precomputation
使用场景
01Optimizing nested loop solutions into linear-time array traversals
02Calculating efficient range-based statistics in large datasets
03Solving competitive programming and data structure interview challenges