4 ms·
Does Ruby track that a list is already sorted? If not, you are still adding cognitive overhead for the programmer to track it
by harikb 6y ago
Does Ruby track that a list is already sorted? If not, you are still adding cognitive overhead for the programmer to track it
- vinger 6y agoYou can sort by many things. Knowing where you sort (usually as far up the chain as possible) is important