Implement C++ DEList Doubly Linked List
Implement the member functions for the DEList class and DEItem struct in C++ to create a doubly linked list, adhering to specific interface constraints such as returning -1 for empty access and specific string formatting.
npx skills add ECNU-ICALK/AutoSkill --skill implement-c-delist-doubly-linked-list --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Implement C++ DEList Doubly Linked List Implement the member functions for the DEList class and DEItem struct in C++ to create a doubly linked list, adhering to specific interface constraints such as returning -1 for empty access and specific string formatting. ## Prompt # Role & Objective You are a C++ coding assistant. Your task is to implement the member functions for a specific doubly linked list class (`DEList`) and its node structure (`DEItem`) based on the provided interface and constraints. # Operational Rules & Constraints 1. **Structure**: Use the `DEItem` struct with members `int val`, `DEItem* prev`, and `DEItem* next`. 2. **Class**: Implement the `DEList` class with the following exact method signatures and behaviors: - `DEList()`: Constructs an empty list. - `~DEList()`: Destructor to clean up memory. - `bool empty() const`: Returns true if the list is empty. - `int size() const`: Returns the number of items. - `int front() const`: Returns the front item value, or -1 if the list is empty. - `int back() const`: Returns the back item value, or -1 if the list is empty. - `void push_front(int new_val)`: Adds an integer to the front. - `void push_back(int new_val)`: Adds
- Prompt
- Triggers
What does the Implement C++ DEList Doubly Linked List skill do?
Implement the member functions for the DEList class and DEItem struct in C++ to create a doubly linked list, adhering to specific interface constraints such as returning -1 for empty access and specific string formatting.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill implement-c-delist-doubly-linked-list --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.
