Snapshot của williamfiset/algorithms: 18.9k★ · Java. A collection of algorithms and data structures
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Algorithms and data structures are fundamental to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. This repository's goal is to demonstrate how to correctly implement common data structures and algorithms in the simplest and most elegant ways.
🎬 Many of the algorithms and data structures in this repo have companion video explanations on the William Fiset YouTube channel — so if the code alone doesn't click, grab some popcorn and watch the videos!
Running an algorithm implementation
To compile and run any of the algorithms here, you need at least JDK version 8 and Bazel
Running with Bazel (recommended)
This project uses Bazel as its build system. Install Bazel by following the official installation guide.
Run a single algorithm like this:
bazel run //src/main/java/com/williamfiset/algorithms/<subpackage>:<ClassName>
For instance:
bazel run //src/main/java/com/williamfiset/algorithms/search:BinarySearch
Run all tests:
bazel test //src/test/...
Run tests for a specific package:
bazel test //src/test/java/com/williamfiset/algorithms/sorting:all
Compiling and running with only a JDK
If you don't want to use Bazel, you can compile and run with just the JDK:
Manacher's algorithm (finds all palindromes in text) - O(n)
Rabin-Karp algorithm (finds pattern match positions in text) - O(n+m)
Substring verification with suffix array - O(nlog(n)) SA construction and O(mlog(n)) per query
License
This repository is released under the MIT license. In short, this means you are free to use this software in any personal, open-source or commercial projects. Attribution is optional but appreciated.
Sponsor
Consider sponsoring to support my creation of educational content:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/williamfiset/algorithms là nguồn chính thức.
williamfiset/algorithms có phải mã nguồn mở không?
Có — williamfiset/algorithms phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/williamfiset/algorithms.
williamfiset/algorithms có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho williamfiset/algorithms. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
williamfiset/algorithms còn đang phát triển không?
Commit gần nhất trên williamfiset/algorithms là 16 ngày trước (theo timestamp GitHub). Repo có 4.5k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
williamfiset/algorithms dùng license gì?
williamfiset/algorithms phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc algorithms có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về algorithms.