3 ms·
Well, no, not always, always. Use the data structure that makes the design more efficient. Clarity might be nice, but an O(n) solution is not acceptable when
by boucher 19y ago
Well, no, not always, always.
Use the data structure that makes the design more efficient. Clarity might be nice, but an O(n) solution is not acceptable when a reasonable O(log n) or O(1) solution exists.