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/SlowbeardiusOfBeard Apr 05 '22
One thing that I've never seen an explanation of is, how do you determine what the Big O of a given algorithm is in the first place. So, if I write a piece of code how can I look at it and think "hang on, this isn't very optimal, I should rewrite this by [doing some stuff] and now it's log n".
I've never known whether it's something that requires algebraic analysis, or if it should just be evident.