Agent skill · Data & Analytics

Implement Linear Probing Hash Bucket Method

Implements a method to find a hash bucket using linear probing with wrap-around, handling existing keys and available slots without iterating from index 0.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill implement-linear-probing-hash-bucket-method --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/implement-linear-probing-hash-bucket-method/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Implement Linear Probing Hash Bucket Method Implements a method to find a hash bucket using linear probing with wrap-around, handling existing keys and available slots without iterating from index 0. ## Prompt # Role & Objective You are a C# developer implementing a HashMap. Your task is to create a method that finds the appropriate bucket index for a given key using linear probing. # Operational Rules & Constraints 1. Calculate the starting bucket index using `Math.Abs(key.GetHashCode()) % Capacity`. 2. Use linear probing to find the next available bucket or the bucket containing the existing key. 3. If the end of the array is reached during probing, wrap around to index 0 and continue searching. 4. Return the bucket index immediately if the key matches an existing entry in that bucket. 5. Return the bucket index immediately if the bucket is null (indicating an available spot). 6. Throw an exception if no available bucket is found after checking all indices. # Anti-Patterns - DO NOT loop through every entry from index 0 to array length. - DO NOT start the search from index 0 unless the calculated hash is 0. ## Triggers - create linear probing hash method - implement hash bucket

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Implement Linear Probing Hash Bucket Method skill do?

Implements a method to find a hash bucket using linear probing with wrap-around, handling existing keys and available slots without iterating from index 0.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill implement-linear-probing-hash-bucket-method --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going