Search:

Type: Posts; User: Adak

Search: Search took 0.08 seconds.

  1. Replies
    12
    Views
    3,598

    I've never coded a merge array function using a...

    I've never coded a merge array function using a for loop. Usually use two while loops (one for the main part, and one for the longer array "leftovers").

    Looking at this, it seems inefficient to...
  2. Replies
    12
    Views
    3,598

    You are right on both accounts, iMalc! OK,...

    You are right on both accounts, iMalc!

    OK, here we go. I changed your code a lot, but tried to keep it in the same framework.

    As iMalc sagely mentioned, we need separate indexes for each of...
  3. Replies
    12
    Views
    3,598

    You have to do two things when you make your if()...

    You have to do two things when you make your if() comparison of apples:

    1) put the smaller apple into the merged bowl and
    2) pick up the smallest apple in the same bowl that was the source for...
  4. Replies
    12
    Views
    3,598

    You have 4 apples in one bowl, sorted by size....

    You have 4 apples in one bowl, sorted by size. You have 4 apples in another bowl, sorted by size. You are going to put all the apples into one bowl, sorted by size.

    How'd you do that?

    Probably...
Results 1 to 4 of 4