3 ms·
"I forgot that in python getting list elements by index is O(1) instead of O(n) which is what I'm personally used to with lists." Have you considered that mayb
by ummonk 5y ago
"I forgot that in python getting list elements by index is O(1) instead of O(n) which is what I'm personally used to with lists."
Have you considered that maybe this is a sign you're too deep into using impractical programming languages?
Cleanness for immutable data structures aside, linked list are a very poor way to store data given the way computer architectures are designed.
- dragonwriter 5y ago> Have you considered that maybe this is a sign you're too deep into using impractical programming languages? “Languages that use ‘list’ for linked lists and have different names for other integer-indexable ordered collections” aren’t necessarily “impractical”.