Re: Mergesort problem

2016-12-22 Thread Andrea D'Amore
I know a code review wasn't the main goal of you message but I feel it's worth mentioning two tips: On 22 December 2016 at 01:55, Deborah Swanson wrote: > ls = [] > with open('E:\\Coding projects\\Pycharm\\Moving\\New Listings.csv', > 'r') as infile: > raw = csv.reader(infile) >

RE: Mergesort problem

2016-12-21 Thread Deborah Swanson
> On Thu, Dec 22, 2016 at 11:55 AM, Deborah Swanson > wrote: > > The problem is that while mergeSort puts the list ls in > perfect order, > > which I can see by looking at result on merge's final return to > > mergeSort, and at the left and the right once back in > mergeSort. Both > > the le

Re: Mergesort problem

2016-12-21 Thread Chris Angelico
On Thu, Dec 22, 2016 at 11:55 AM, Deborah Swanson wrote: > The problem is that while mergeSort puts the list ls in perfect order, > which I can see by looking at result on merge's final return to > mergeSort, and at the left and the right once back in mergeSort. Both > the left half and the right

Mergesort problem

2016-12-21 Thread Deborah Swanson
I'm not a beginning python coder, but I'm not an advanced one either. I can't see why I have this problem, though at this point I've probably been looking at it too hard and for too long (several days), so maybe I'm just too close to it. Can one of you guys see the problem (besides my childish codi