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/[deleted] Apr 07 '22
That’s actually a good suggestion. I agree. I would suggest the code however to be two separate functions rather than two overloaded ones, since some people might not be familiar with function overloading and get confused.
P.s I also like your use of a linked list. I was thinking of a vector at first, but linked list makes it clearer.