• Stars
    star
    3
  • Rank 3,954,887 (Top 79 %)
  • Language
    Java
  • Created over 3 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Binary search implementation in Java (recursive and iterative). Comparison with linear search. Runtime test of binary and linear search.

More Repositories

1

color-thief-java

Grabs the dominant color or a representative color palette from an image. A very fast Java port of Lokesh Dhakar's JavaScript version.
Java
228
star
2

hexagonal-architecture-java

This repository contains a sample Java REST application implemented according to hexagonal architecture.
Java
78
star
3

binary-tree

Source Code for HappyCoders.eu article series on tree data structures (binary tree, binary search tree, AVL tree, red-black tree).
Java
34
star
4

pathfinding

Source code for the HappyCoders.eu articles on pathfinding and shortest path algorithms (Dijkstra, A*, Bellman-Ford, Floyd-Warshall).
Java
33
star
5

sorting-algorithms-ultimate-guide

Sorting algorithm source codes + ultimate test to compare the performance of all algorithms. For my HappyCoders.eu article.
Java
16
star
6

o-notation-and-time-complexity

Code examples demonstrating the complexity classes O(1), O(log n), O(n), O(n log n), O(nĀ²).
Java
13
star
7

advent-of-code-2022

Advent of Code 2022 ā€“ Object-Oriented Solutions in Java: https://www.happycoders.eu/algorithms/advent-of-code-2022/
Java
9
star
8

structured-concurrency

Demo code showing how to use Java's StructuredTaskScope
Java
9
star
9

filechannel-bytebuffer-memory-mapped-io-locks

Demos for writing and reading files with FileChannel and ByteArray. Tests for write speed with RandomAccessFile, FileChannel, heap buffer, native buffer, memory-mapped buffer, and FileOutputStream.
Java
8
star
10

virtual-threads

Demo code showing how to use Java's virtual threads.
Java
4
star
11

internet-address-resolution-spi-jep-418-demo

A rudimentary demonstration on how to use the Internet-Address Resolution SPI defined in JEP 418 introduced in Java 18. Article: https://www.happycoders.eu/java/java-18-features/
Java
3
star
12

java-collections-guide

Java Queue, Deque, Stack and other collections - Ultimate Guide on HappyCoders.eu.
Java
3
star
13

bytebuffer-demo

This demo shows how a ByteBuffer and its flip() and compact() methods work.
Java
2
star
14

advent-of-code-2015

Advent of Code 2015 ā€“ Object-Oriented Solutions in Java: https://www.happycoders.eu/algorithms/advent-of-code-2015/
Java
2
star
15

application-cds-demo

A minimal application for demostrating application class-data sharing (AppCDS).
Java
2
star
16

ffm-api-demo

Demonstration of Java's Foreign Function & Memory API
Java
2
star
17

virtual-threads-spring

Spring demo application to compare controllers using CompletableFuture vs. virtual threads.
Java
2
star
18

project-a

Source code for the HappyCoders.eu article about Git Monorepos.
Java
1
star
19

files-structured-data

Source code for my HappyCoders.eu article about writing structured data with DataOutputStream, DataInputStream, ObjectOutputStream and ObjectInputStream.
Java
1
star
20

int-to-string-benchmarks

JMH benchmark tests to find out what is the fastest way to convert an int into a String in Java.
Java
1
star
21

coding-tasks-cd27a20

1
star
22

pattern-matching-for-switch

Pattern Matching for Switch Examples
Java
1
star
23

ultimate-guide-queue-deque-stack

Java Queue, Deque, Stack - Ultimate Guide on HappyCoders.eu
Java
1
star
24

java-kata

Maven project for Java Katas containing only a class, a test class, and dependencies to JUnit, AssertJ, and Mockito
Java
1
star
25

sorting-in-java

Demo code for HappyCoders.eu tutorial about sorting primitives and objects with Java.
Java
1
star
26

project-b

Source code for the HappyCoders.eu article about Git Monorepos.
Java
1
star
27

biased-locking

A JMH benchmark demostrating the effects of disabled biased locking in Java 15.
Java
1
star
28

jenkins-tutorial-demo

Code for HappyCoders.eu Jenkins tutorial explaining the installation and major features of Jenkins.
Groovy
1
star
29

happycoders-tutorial-server-setup

Source code for HappyCoders.eu Ansible tutorial.
HTML
1
star
30

java-structured-concurrency-demo

Demo code for the HappyCoders.eu article "Structured Concurrency with Java".
Java
1
star
31

string-to-int-benchmarks

JMH benchmark tests to measure the speed of various methods to convert Strings to int / Integer in Java.
Java
1
star
32

string-substring-demo

A demonstration of the String.substring() method and its evolution from Java 1.2 to today.
Java
1
star
33

sparse-checkout-demo

Source code for the HappyCoders.eu article about Git Monorepos.
Java
1
star
34

java-random-demo

Java random number generation demos. Article on HappyCoders.eu.
Java
1
star
35

comparator-comparable-compareto

Source code for my HappyCoders.eu article about comparing objects in Java using Comparable, Comparator, compareTo().
Java
1
star
36

mastering-data-structures

Mastering Data Structures in Java - Accompanying Material
Java
1
star
37

deep-reflection

How can Java Reflection be used to change the values of Integers and Strings at runtime?
Java
1
star