Algorithms

Sorting, searching, and binary search Divide-and-conquer Dynamic programming and memorization Greedy algorithms Recursion Graph traversal, BFS and DFS Sorting Main algorithms presented Mergesort: Java sort for Objects Quicksort: Java sort for primitive types Heapsort Mergesort vs Quicksort vs Heapsort All Read more…

Java 8 streams

Notes on practical usage of Java 8 stream filtering. Stream Filtering A Stream<T> references a sequence of T values, and exposes a set of aggregate operations we can use to manipulate data in a pipeline. As an example, we can find the name of Read more…

Passwords and Hashing

This page presents a few examples of using Java for passwords and hashing. Generate Password A Java example to generate a random password containing only alphanumeric characters. Java Code to ComputeSHA-512 digest other.. linux get sha-512/