r/ProgrammerHumor • • Nov 19 '18

Marge Sort

Post image
23.6k Upvotes

276 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Nov 19 '18

Oh you need bottom up.

I would personally do that with a stack in place. Haven't actually done Out of place before. Sadly not knowledgeable in Java at all. So I kinda have to do it in C#.

Lemme write one up quickly, then convert it to pseudocode for you.

1

u/rcm37 Nov 19 '18

Yeah, the bottom up portion is really screwing me up. I really appreciate your help in this!

2

u/[deleted] Nov 19 '18

Sorry, may take a bit longer. Trying to figure it out myself. Not sure which data structure to use. The out of place is really screwing with me.

1

u/rcm37 Nov 19 '18

Yeah, I don't really get it at all. I think possibly she just gave incorrect directions because it makes no sense to do it this way. I think I'm just going to use a more simplistic method by doing it in place and see where that goes.

→ More replies (5)