Big O

Big O notation is a mathematical way of representing the complexity of an algorithm. It is used to describe the efficiency of a particular algorithm in terms of how the running time or space required grows as the input size increases. In computer science, the input size is often represented by the variable n, and … Read more

simple post

Tab #1 Tab #2 Tab #1 public class AVLTree { private class AVLNode{ private int value; private AVLNode leftChild; private AVLNode rightChild; private int height; public AVLNode(int value){ this.value = value; } @Override public String toString(){ return “value = “+value+” height = “+height; } } private AVLNode root; public void insert(int value){ root = insert(root, … Read more