This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a LeetCode solutions repository organized by date and problem type. The codebase contains solutions in multiple languages including C, C++, Go, and Java. The repository is structured with:
23/04/, 25/11/) containing individual problem solutionsdataStruct/ directory (LinkedList, Heap, Tree, etc.)Since this repository contains individual solution files rather than a unified project, compilation and execution is done per file:
For C/C++ files:
# Compile C file
gcc -o solution filename.c
# Compile C++ file
g++ -o solution filename.cpp
# Run the compiled executable
./solution
For Go files:
# Run Go file directly
go run filename.go
# Build Go executable
go build filename.go
For Java files:
# Compile Java file
javac filename.java
# Run Java program
java filename
There are no automated tests in this repository. Each solution should be tested manually by:
list(), len(), creatRandomTree()) for debuggingThe repository includes custom implementations of common data structures:
dataStruct/LinkedList/lists.h with ListNode struct and utility functions (createRandomList, list, array, len)dataStruct/Tree/Tree.h with TreeNode struct and creatRandomTree functiondataStruct/Heap/Heap.hdataStruct/Queue/PriorityQueue.c25/11/ for November 2025)3005.go, 3005.cpp, 3005.java)tools.h and the dataStruct/ directorycreateRandomList, creatRandomTree)When working on new solutions, follow the existing patterns and place files in the appropriate date directory based on when the solution was created.