# stevenhalim/cpbook-code

CP4 Free Source Code Project (C++17, Java11, Python3 and OCaml)

Repository: https://github.com/stevenhalim/cpbook-code
Canonical: https://ross.abutalabs.com/products/cpbook-code
Language: Java
License Family: other
Last push: 2026-06-16T05:58:28+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 35, longevity 100
- inputs: {"age_days": 2836, "days_push": 78, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2348, forks 543 (observed 2026-08-28T04:06:40.064462+00:00)

## What it is
The free companion source code repository for the Competitive Programming 4 book, containing implementations of well-known data structures and algorithms in C++17, Java 11, Python 3, and OCaml. It serves as a reference library that programmers can copy, adapt, and use in contests or other coding projects.

## Use cases
- study data structures and algorithms for competitive programming
- find reference implementations of classic algorithms before a contest
- copy well-tested algorithm templates like segment trees or graph algorithms
- compare algorithm implementations across C++, Java, Python, and OCaml
- supplement reading the Competitive Programming 4 book with runnable code
- prepare for ICPC or Codeforces contests with reusable code snippets

## When to choose
- you are preparing for programming contests and want battle-tested algorithm templates
- you want to learn how classic data structures and algorithms are implemented in multiple languages
- you are reading the CP4 book and want its accompanying code
- you need a quick reference implementation rather than writing algorithms from scratch

## When to avoid
- you need a production-ready algorithm library with package management and versioned releases
- you want a general-purpose data structures library to use as a dependency in applications
- you need code with a formal open-source license file for commercial redistribution
- you are looking for tutorials or explanations rather than source code

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools
- domain: education, programming-languages
- platform: cross-platform
- tags: competitive-programming, data-structures, algorithms, reference-code, cp4, cpp, java, python, ocaml

## Member repositories
- stevenhalim/cpbook-code (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:40.064462+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:36:59.832341+00:00, confidence not recorded.
  - readme: https://github.com/stevenhalim/cpbook-code (fetched 2026-08-28T04:06:40.064462+00:00, sha 1e1bf3783d38)
- Data as of 2026-08-30T08:39:29.467469+00:00.
