r/learnprogramming • u/Temporary-Warthog250 • Apr 05 '22
Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them
Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.
Someone else who reads yours and does understand it, try to explain it to them to help them learn
1.6k
Upvotes
1
u/ExtraFig6 Apr 06 '22
I think AVL trees are the clearest here because you store the height of the subtrees. So you make sure the left and right's lengths must be close together. If not, you rotate.