Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

From: Rob <robpilling_AT_gmail.com>
Date: Sun, 6 Oct 2013 10:39:34 +0100

On Sat, Oct 05, 2013 at 03:47:05PM +0400, Alexander S. wrote:
> 2013/10/5 Rob <robpilling_AT_gmail.com>:
> > On Fri, Oct 04, 2013 at 05:45:56PM +0400, Alexander S. wrote:
> > I disagree - rather than adding a sort call and changing the program's
> > runtime complexity, can't we just reduce the amount of lines _and_
> > duplication like this:
> Reversing an array we just sorted isn't adding complexity, it's O(n)
> adding to O(n log n).
>

Touche
Received on Sun Oct 06 2013 - 11:39:34 CEST

This archive was generated by hypermail 2.3.0 : Sun Oct 06 2013 - 11:48:06 CEST