ACTUAL QUESTIONS AND CORRECTLY
WELL DEFINED ANSWERS LATEST 2025 –
2026 ALREADY GRADED A+
AVL Tree - ANSWERS-a self-balancing sorted binary tree, in
which the heights of subtrees differ by at most 1.
Max Heap - ANSWERS-a complete binary tree in which the
value in each internal node is greater than or equal to the
values of the children in those nodes(Note* NOT the SUM,
just each individual value)
What does the factory method do? - ANSWERS-For the
factory method pattern, we need to define an abstract class
that subclasses can use to return subclasses of the
dependency
What is a race condition in regards to Threads? - ANSWERS-
When you dont know what thread will finish first, so