Jump to content

Ulysses_S_Grant

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Ulysses_S_Grant

  1. The way prices were, you would have had to sell 6 or 7 green masks to get to 99 magic.
  2. posted from this site I bolded some of the more interesting ones
  3. nevermind, I figured it out. I forgot to decrement the Node size in one spot.
  4. Thanks. Ok, through my testing, I found out Insert works fine, it's just DeleteMin that's wrong.
  5. I've been having some trouble with my java homework. Ok, first...these are my two files (Note...they're completely safe. Anyone who can't tell within 2 seconds they're completely safe probably doesn't need to be looking anyway :)) http://www.mizzou.edu/~agm257/Heap.java http://www.mizzou.edu/~agm257/SortArray.java Ok, so our assignment was to implement a Heap (see heap.java) using Nodes, and then create a random array of x values between 0 and y, x and y are args[0] and args[1]. So here's my question. Why does my sort crap out on me half way through? For example, if you were to run java SortArray 5 5 the output might be something of this sort 0 5 2 0 1 ===== 0 0 2 2 2 Where "0,5,2,0,1" are the randomly generated numbers, and below the equal sign is the attempt at sorting. It seems completely random where the sorting stops and the repeating begins. Anyone got any ideas?[/code]
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.