Go to file
Prathamesh Powar 574138c7a3
Cleanup BoyerMoore (#4951)
* modify code to make use of java Optional class

* revert changes

* add java.util.Optional<Integer>

* add java.util.Optional

* refactors: make `findmajor` return `optional`

* refactors: make method name findMajor and split it

* refactors: change method name in tests

* Apply suggestions from code review

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>

* change back to int

* fix: swap arguments

* tests: add some test cases

* refactor: add `isMajority` and avoid rounding

* style: use `var`

* style: swap arguments of `countOccurrences`

---------

Co-authored-by: vil02 <vil02@o2.pl>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2023-10-31 09:07:59 +01:00
.devcontainer Add Devcontainer Support (#3156) 2022-06-24 16:29:08 +03:00
.github adding formatting steps in pull request template (#4606) 2023-10-08 21:06:13 +02:00
src Cleanup BoyerMoore (#4951) 2023-10-31 09:07:59 +01:00
.clang-format chore: enforce InsertNewlineAtEOF in clang-format (#4343) 2023-09-01 04:10:46 +00:00
.gitignore Update .gitignore (#4344) 2023-09-01 09:37:29 +05:30
.gitpod.dockerfile Configure clang-format-16 in gitpod (#4347) 2023-09-02 20:00:54 +03:00
.gitpod.yml Add clang-format to gitpod (#4247) 2023-07-23 00:19:50 +03:00
CONTRIBUTING.md adding formatting steps in pull request template (#4606) 2023-10-08 21:06:13 +02:00
DIRECTORY.md Add FloorTest and clean-up Floor (#4769) 2023-10-12 00:21:53 +03:00
LICENSE Update LICENSE 2021-02-25 16:15:52 -06:00
pom.xml Add different types of Mean (#4339) 2023-09-02 17:22:28 +00:00
README-ko.md Fix typo in README-ko.md (#4215) 2023-06-14 15:37:14 +03:00
README.md Remove old Gitter chat 2023-03-18 10:09:06 +02:00

The Algorithms - Java

Build Discord chat Gitpod ready-to-code

You can run and edit the algorithms, or contribute to them using Gitpod.io (a free online development environment) with a single click.

Open in Gitpod

All algorithms are implemented in Java (for educational purposes)

These implementations are intended for learning purposes. As such, they may be less efficient than the Java standard library.

Contribution Guidelines

Please read our Contribution Guidelines before you contribute to this project.

Algorithms

Our directory has the full list of applications.