Marc's Cakewalk

  • + 0 comments

    long marcsCakewalk(int calorie_count, int* calorie) { unsigned long long int result=0; //selection sort for(int i=0;icalorie[minimum_index]){ minimum_index=j; } } if(minimum_index!=i){ swap(&calorie[i],&calorie[minimum_index]); } } for(int i=0;i