Skip to content

xirc/cp-algorithm

Repository files navigation

Competitive Programming Library

CircleCI

This project contains my competitive programming library, examples, and solutions.

Library

  • Basic Operations
  • Projection, Rejection
  • CCW
  • Line
    • Orthogonal
    • Parallel
  • Intersection
    • Line-Point
    • Segment-Point
    • Line-Line
    • Segment-Segment
    • Line-Segment (w/o point)
    • Circle-Circle
    • Circle-Line
  • Distance
    • Line-Point
    • Segment-Point
    • Line-Line
    • Segment-Segment
    • Line-Segment
  • Polygon
    • Area
    • Convex Check
    • Containment (ON, IN, OUT)
    • Convex Hull
    • Convex Diameter
  • Circle
    • Tangent Line
      • Circle-Point
      • Circle-Circle
  • Line Sweep
    • Distance of the Closest Pair
    • Segment Intersections in Manhattan Geometry
    • Area of Union Rectangles
  • Basic Operations
  • Projection, Rejection

How to provision development environment

Use Visual Studio Remote Containers*

How to build library and examples

See lib/README.md

References

Learning sites

Tips

GCC Compiler Flags

It would be better to use the following compiler flags. In the Visual Studio Code Remote Container environment, the flags are used as default by the command alias. See Dockerfile.