Re:Sleeping Through the Technical Interview (2022)
by squeaky-clean on Saturday July 08, 2023 @08:47PM
(#36650276)
It doesn't though. How would merge sort become constant time if you assume a maximum value? It's also a joke...
[ Parent
| on HN ]
Re:Sleeping Through the Technical Interview (2022)
by libealistand on Monday July 10, 2023 @02:05AM
(#36662676)
The main "value" in the domain of sorting problems is the number of elements in your collection.
A subproblem also considers the elements to be integers, then they become another "value" domain. (But in general, sorting problems only need their elements to be comparable, not necessarily integers.)