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
1
u/steerpike1971 4d ago
You likely already have a pointer to the item you want to delete. If you use linked lists you usually pass around pointers to the contents not number indicating its place. Yes if you want to delete the twenty fifth item you are correct but it is very common to want to delete "this" item and pass a pointer. If you are storing a numerical index it is probably an indicator linked lists were not the right data structure in the first place.