4 ms·
The rule of three should obviously not be applied to well known data structures and algorithms ...
by 0x696C6961 2y ago
The rule of three should obviously not be applied to well known data structures and algorithms ...
- II2II 2y agoWell known data structures and algorithms are well know because they have been used more than three times. That said: if you are dealing with a situation where you have to implement them yourself, you may want to consider whether the rule of three applies. (Clearly this depends upon the situation.)
- bluGill 2y agoIf the well known data structures and algorithms are not provide by your language get a better language. There are exceptions. If you are implementing the language it is your job to write them. It is useful as a student to implement the basics from scratch. Your language may decide something is not allowed and thus not implement it (a doubly linked list is almost always a bad idea in the real world. Likewise you don't need to provide all the sorting algorithms)