Skip to content

russuel/dcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dcp — Daily Coding Problem CLI

A terminal-based coding challenge tool that generates fresh interview problems via the Anthropic API. Topic-based rotation, session tracking, and streak counting.

Setup

export ANTHROPIC_API_KEY=your_key_here
go install github.com/russuel/dcp/cmd/dcp@latest

# or build locally
go build -o dcp ./cmd/dcp

Usage

# Generate today's problem (auto-advances topic every 5 solves)
dcp

# Show the hint alongside the problem
dcp -hint

# Jump to a specific topic by index
dcp -topic 4

# Mark the last problem as solved
dcp -solved

# Session stats + recent history
dcp -stats

# List all topic indices
dcp -list

Topics (rotation order)

# Topic
0 Arrays
1 Strings
2 Hash maps
3 Linked lists
4 Stacks & queues
5 Trees
6 Graphs
7 Recursion
8 Dynamic programming
9 Sorting & searching
10 Bit manipulation
11 Heaps

How progression works

  • Every 5 solved problems advances to the next topic automatically.
  • Session data is stored at ~/.dcp/session.json (append-only).
  • Streak counts consecutive calendar days with at least one solve.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages