Logic Gym

A gym for coding logic.

Logic Gym gives you 10,036+ validated coding problems in Java, Python, and C++. They run from first loops to contest problems, and every one is auto-graded.

Enough problems for spaced practice, remediation, and challenge work all year. No more hunting for new ones.

10,036+
Validated practice problems
3
Languages: Java, Python, and C++
5
Levels, from Beginner to Competitive
Every problem checked against a solution

Practice ready for any course

Curated, auto-graded problems that fit into the course you already teach.

Auto-graded from the start

Validated unit tests give instant pass/fail, and Rubriq can add feedback on code quality. No hand-grading.

Every problem validated

Every problem has a reference solution and tests checked against known-good answers.

Fits into any course

Add Logic Gym next to your textbook with the multi-curriculum classroom, and choose what each class sees.

Assign directly or adaptively

Pick a set yourself, or let assignment routines group students by mastery and engagement, then choose problems at each group’s level.

The Logic Gym

Fifteen practice books

One problem book for each language and level. Filter to the practice your class needs, or browse them all.

Language
Level
LOGIC GYM Java Beginner 01 / 05 417 problems
Java
Beginner
LOGIC GYM Java Fundamentals 02 / 05 348 problems
Java
Fundamentals
LOGIC GYM Java Data Structures 03 / 05 854 problems
Java
Data Structures
LOGIC GYM Java Algorithms 04 / 05 573 problems
Java
Algorithms
LOGIC GYM Java Competitive 05 / 05 75 problems
Java
Competitive Programming
LOGIC GYM Python Beginner 01 / 05 1,338 problems
Python
Beginner
LOGIC GYM Python Fundamentals 02 / 05 814 problems
Python
Fundamentals
LOGIC GYM Python Data Structures 03 / 05 882 problems
Python
Data Structures
LOGIC GYM Python Algorithms 04 / 05 596 problems
Python
Algorithms
LOGIC GYM Python Competitive 05 / 05 82 problems
Python
Competitive Programming
LOGIC GYM C++ Beginner 01 / 05 1,516 problems
C++
Beginner
LOGIC GYM C++ Fundamentals 02 / 05 832 problems
C++
Fundamentals
LOGIC GYM C++ Data Structures 03 / 05 964 problems
C++
Data Structures
LOGIC GYM C++ Algorithms 04 / 05 650 problems
C++
Algorithms
LOGIC GYM C++ Competitive 05 / 05 95 problems
C++
Competitive Programming
More languages
on the way

Every book comes with Alps. Add a set to your class in one click, then assign it directly or mix it into your curriculum.

From library to lesson in three steps

Logic Gym works with the tools you already use on Alps.

1

Add the sets you want

Pick languages and levels and add them next to your textbook with the multi-curriculum classroom. Keep them hidden until you assign them.

2

Assign them yourself or let Alps group by mastery and engagement

Pick problems for a unit, or run an assignment routine for warm-ups, practice, spiral review, or remediation. It groups students by mastery and engagement, then picks problems for each group.

Watch mastery grow

Auto-grading and BloomIQ analytics track every attempt, so the next assignment fits what each student needs.

The ladder

Five levels in every language

The same progression in Java, Python, and C++. Students can go from first loops to contest problems in one place.

LEVEL 01
Beginner
First steps — syntax, input/output, and control flow.
Input & outputArithmeticConditionalsLoopsStringsArrays
LEVEL 02
Fundamentals
Core programming — strings, arrays, and a first taste of algorithms.
Control flowNumbersStringsArraysBasic algorithmsCollections
LEVEL 03
Data Structures
The classic structures every CS course is built on.
SortingHashingLinked listsStacks & queuesTreesHeaps
LEVEL 04
Algorithms
The algorithmic toolkit — graphs, dynamic programming, and greedy methods.
Graph traversalDynamic programmingGreedyTreesHeaps
LEVEL 05
Competitive Programming
Contest-style problems that stretch your strongest students.
SimulationMathematicsGraphsRecursionDynamic programming
Quality checked

Practice you don't have to vet

Free problem sets often come without solutions or tests. Every Logic Gym problem has both, checked before it ships.

  • ✓ Every problem has a reference solution
  • ✓ Tests are validated against known-good answers before a problem ships
  • ✓ Tagged by topic, with duplicates removed, so sets match your units
  • ✓ Only openly licensed and original material, cleared for classroom use
  • ✓ Drawn from respected programming-education and code-generation research datasets, plus original 2Sigma School content
Checked for every problem
A reference solution
Unit tests that pass on the solution
A topic and level
A license cleared for classroom use
How it compares

Logic Gym vs. typical problem sets

Feature Logic Gym Typical problem sets
Auto-graded in the browser
Checked against a reference solution
Thousands of problems in one place
Adaptive assignment by mastery and engagement
Fits into your existing curriculum ~
Organized by language and level ~

Give your students a place to practice

Add the Logic Gym sets your class needs, and auto-grading does the rest.