(Mar-22-2024, 03:56 PM)deanhystad Wrote: You should post a description of what the program is supposed to do. This was missing from your previous post also.Sorry, the first thing i want to do is make it also have option to asking for custom input or generating random number like etc: i want to enter [0,10,7,1,6,4] instead of randomly generating number, i already tried modified it but ended in error, do you have code to make it asking the number instead of random?
Is the goal to sort the frogs in decreasing order by their interval? What is a "step"? Is comparing two intervals a step, or is a step when you swap two frogs? Is there a restriction on how frogs can be swapped?
Coding upgrade
Messages In This Thread |
Coding upgrade - by MoreMoney - Mar-22-2024, 02:36 PM
RE: Frog Jumping Coding Improvement - by deanhystad - Mar-22-2024, 03:56 PM
RE: Frog Jumping Coding Improvement - by MoreMoney - Mar-22-2024, 04:02 PM
RE: Frog Jumping Coding Improvement - by deanhystad - Mar-22-2024, 04:16 PM
RE: Frog Jumping Coding Improvement - by MoreMoney - Mar-22-2024, 04:30 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Need to upgrade this code. | valentino1337 | 2 | 641 |
Feb-28-2024, 07:44 PM Last Post: jefsummers |
Users browsing this thread: 1 Guest(s)