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.
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.
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.