Thread 105728863 - /g/ [Archived: 730 hours ago]

Anonymous
6/28/2025, 3:00:45 AM No.105728863
1747399667964242
1747399667964242
md5: 441e90e572d24b27b64790ef83ac8662🔍
how did you learn to implement all the data structures into code? Is it a matter of doing it over and over? Projects? Leetcoding?
Replies: >>105728928 >>105728935 >>105729252
Anonymous
6/28/2025, 3:09:14 AM No.105728928
>>105728863 (OP)
just write the code that implements a data structure of your choice as your own custom library, retard. and have tests that validate their correctness.
Anonymous
6/28/2025, 3:10:13 AM No.105728935
>>105728863 (OP)
The unfortunate truth is implementing data structures in a professional context is almost always the wrong move. Typically you will use library code that is battle tested. I have only very rarely seen anything homegrown that outperforms library code.Typically it is half baked and a source of stability issues.

The times when it is necessary are when you know much more about a very particular problem than 97% of people and you have a strong background implementing low level code. 99% of the time, or even 100% for average people, you should not implement data structure beyond simply using the ones available to you appropriately. You don't need a skiplist.
Anonymous
6/28/2025, 3:51:25 AM No.105729252
>>105728863 (OP)
Experience, instinct, talent, googling, math, brute-force trial and error, problem solving, subconscious, and so on.
You losers always want that 1 magic trick.