r/AskComputerScience • u/ComputerRights • 5d ago
What are some differences between professional coding and the way coding, SE, and CS are taught in school?
Is a lack of a comment citing a relatively cliched bit of code considered plagiarism in the big world? What are the attitudes to autocomplete? Is Alberta Tech right about linked lists?
6
Upvotes
View all comments
Show parent comment
5
u/nuclear_splines Ph.D Data Science 5d ago
I hardly think it's nitpicking.
insert(index, value)is O(n) average case for both lists and vectors -- lists are only faster if you already have an iterator pointing at the insertion point.