Skip to main content

New answers tagged

4 votes

MinMaxStack - tracks minimum and maximum values

Questions Standard concept versus custom concept “with minimal requirements” The careless way answer to this question would be to say that it would be better to go with a more minimal concept, even if ...
indi's user avatar
  • 16.6k
4 votes

MinMaxStack - tracks minimum and maximum values

The choice of data representation means that we have up to three copies of each element. For large T, that could be problematic. For uncopyable ...
Toby Speight's user avatar
  • 88.7k
0 votes

Calculate the median value of combining two sorted lists

Let's break the merging of two lists out into a function. And for fun, let's have the function return an iterator rather than eagerly working on both lists. ...
Chris's user avatar
  • 6,126
2 votes

Benchmarking in Java some super linearithmic sorting algorithms

(I acknowledge title&introduction read benchmarking and comparison. (I suggest to think compare implementations of several algorithms rather than compare several algorithms.) For now going neither ...
greybeard's user avatar
  • 7,819

Top 50 recent answers are included