pedrovgs/Algorithms

Solutions for some common algorithm problems written in Java.

Java

2,781

428 commits

updated Jan 16, 2026

See the code

README

Algorithms QA check

This repository contains my solution for common algorithms. I've created this repository to learn about algorithms and improve solutions to common computer science problems. I'll try to add more solutions if I have time. :)

Each solution has a Java program and is tested. Some problems contain multiple solutions with different implementations.

You can check the solution executing tests inside tests directory. Some problems were resolved using TDD.

Problems

Trees

Linked List

Strings

Binary Numbers and bits operators

Math Operations

Sequences

Arrays

Sorting Algorithms

Misc

Developed By

Follow me on X Add me to Linkedin

License

Copyright 2014 Pedro Vicente Gómez Sánchez

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

pedrovgs/Algorithms

Solutions for some common algorithm problems written in Java.

Java

2,781

428 commits

updated Jan 16, 2026

See the code

README

Algorithms QA check

This repository contains my solution for common algorithms. I've created this repository to learn about algorithms and improve solutions to common computer science problems. I'll try to add more solutions if I have time. :)

Each solution has a Java program and is tested. Some problems contain multiple solutions with different implementations.

You can check the solution executing tests inside tests directory. Some problems were resolved using TDD.

Problems

Trees

Linked List

Strings

Binary Numbers and bits operators

Math Operations

Sequences

Arrays

Sorting Algorithms

Misc

Developed By

Follow me on X Add me to Linkedin

License

Copyright 2014 Pedro Vicente Gómez Sánchez

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Significant stargazers

Iñaki Villar

290 followers · starred Jul 2015

PT

137 followers · starred Mar 2015

Arturo Mejia

255 followers · starred Mar 2017

Francisco Fernández Castaño

18 followers · starred May 2015