Java Programming Tutorials

Java programming tutorials with many code examples!

Algorithms and Data Structures

Welcome to Algorithms and Data Structures Tutorial!

Searching

  • Binary Search
    The fastest way to find an element in a sorted list.

Sorting

  • Bubble Sort
    How to push bubbles into right places in ϴ(n²) time!
  • Insertion Sort
    Sort in ϴ(n²) time by inserting element to its correct position, like in cards.
  • Selection Sort
    Sort in ϴ(n²) time by putting the next min/max element on the current position.

Prime numbers

Recursion

Share with the World!