O Notation and Time Complexity

O Notation and Time Complexity

Code examples demonstrating the complexity classes O(1), O(log n), O(n), O(n log n), O(n²)

The code belongs to this article: https://www.happycoders.eu/java/big-o-notation-time-complexity/