Dataset · codeparrot
Java code with algorithmic complexity annotations
codeparrot/codecomplex
4,200 competitive programming solutions in Java with expert time complexity evaluations for algorithm analysis.
What's inside
Contains 4,200 Java code snippets submitted by programmers to competitive programming contests. Each example is annotated by algorithm experts with its computational complexity class. The data belongs to the text modality and is structured for text-generation tasks.
What you can do with it
- Training models to predict source code computational complexity (Big O)
- Testing LLMs' ability to analyze the efficiency of Java algorithms
- Fine-tuning code assistants to find suboptimal code fragments
- Tasks
- Text generation
- Languages
- Code
- Size
- 1K–10K rows
- Downloads this month
- 438
- Likes
- 32
Models trained on it
How to load it
from datasets import load_dataset
ds = load_dataset("codeparrot/codecomplex")