williamfiset/algorithms ? reverse-engineered prompt

Reverse engineered prompt

Build me a Java repository of common algorithms and data structures that is easy to learn from and easy to run. I want the code organized by topic, like search, sorting, graphs, dynamic programming, trees, strings, and basic data structures such as stacks, queues, heaps, hash tables, tries, union find, and segment trees. Each implementation should be simple, clean, and correct, with a small example or main method so I can run it and see it work.

Set it up so I can run individual algorithms and tests from the command line, and make sure the project works with Bazel, with a straightforward way to compile with just the JDK too. If you can, include a few helpful notes or references in the repo so it feels like a learning resource as well as code. Look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab