Skip to main content
added 1 character in body
Source Link
Chris
  • 6.1k
  • 1
  • 7
  • 41

DRY

If you're sorting your durations to calculate the median, why bother calculating the minimum and maximum on a rolling basis as you collect them, rather than just accessing the first and last value once they're sorted?

Doing it the laterlatter way reduces repeated effort.

DRY

If you're sorting your durations to calculate the median, why bother calculating the minimum and maximum on a rolling basis as you collect them, rather than just accessing the first and last value once they're sorted?

Doing it the later way reduces repeated effort.

DRY

If you're sorting your durations to calculate the median, why bother calculating the minimum and maximum on a rolling basis as you collect them, rather than just accessing the first and last value once they're sorted?

Doing it the latter way reduces repeated effort.

added 2 characters in body
Source Link
Chris
  • 6.1k
  • 1
  • 7
  • 41

DRY

IfIf you're sorting your durations to calculate the median, why bother calculating the minimum and maximum on a rolling basis as you collect them, rather than just accessing the first and last value once they're sorted?

Doing it the later way reduces repeated effort.

DRY

If you're sorting your durations to calculate the median, why bother calculating the minimum and maximum on a rolling basis as you collect them, rather than just accessing the first and last value once they're sorted?

Doing it the later way reduces repeated effort.

DRY

If you're sorting your durations to calculate the median, why bother calculating the minimum and maximum on a rolling basis as you collect them, rather than just accessing the first and last value once they're sorted?

Doing it the later way reduces repeated effort.

Source Link
Chris
  • 6.1k
  • 1
  • 7
  • 41

DRY

If you're sorting your durations to calculate the median, why bother calculating the minimum and maximum on a rolling basis as you collect them, rather than just accessing the first and last value once they're sorted?

Doing it the later way reduces repeated effort.