3 ms·
The simplest data structures are pairs (A, B) and Option<T>.
by howinteresting 4y ago
The simplest data structures are pairs (A, B) and Option<T>.
- ok123456 4y agoWouldn't call those data structures. Those are data types.
- howinteresting 4y agoThey are structured data. The restriction of the term "data structures" to what's asked in interview puzzles is ridiculous IMHO. Edit: and even among "interview puzzle data structures", stacks and queues have much simpler semantics than linked lists.