Search:

Type: Posts; User: mrpeach

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,869

    if(cards[k] == 0) {

    if(cards[k] == 0) {
  2. Replies
    21
    Views
    5,064

    Furthermore, you clearly haven't read and...

    Furthermore, you clearly haven't read and understood the requirements stated in the parent post. The parent specifically states:

    "I'm supposed to find the smallest value among all the values....
  3. Replies
    21
    Views
    5,064

    As I said before, your approach fails if there...

    As I said before, your approach fails if there are any duplicate values in the array.
  4. Replies
    21
    Views
    5,064

    Ok, this is getting silly. Here is what you want....

    Ok, this is getting silly. Here is what you want. Just create two same sized arrays, one with the float values, the other ints initialized to 0. Then repeatedly call this function:



    int...
  5. Replies
    21
    Views
    5,064

    Quzah: Yes, but what if there are several...

    Quzah:

    Yes, but what if there are several duplicate values...
  6. Replies
    21
    Views
    5,064

    Simple solution

    1) Build a index array, filled with values from 0 to whatever your max index is

    2) Sort the array, using the index number to dereference the value. (ie you'll only be changing the values in the...
Results 1 to 6 of 6