Jump to content
  • Advertisement
Sign in to follow this  
Comp Sci

Algorythm help?

This topic is 3599 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, I'm pretty new to all this. I need to know how to 'write an algorythm to find the smallest of 30 numbers' Any help would be greatly appreciated!

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately, we cannot help with homework questions directly. In certain cases, we can give you hints and clues, but you need to do the majority of the work. For example, if you were to give us code or pseudo code, we could hint at what is incorrect.

If you want such help you will need to outline what you have done so far.

Share this post


Link to post
Share on other sites
Well the simplest method:
If I personally gave you 30 numbers, how would you find the smallest? What steps would you take?

Instead of 30 numbers, imagine a set of 5 numbers:
{-1,5,-4,9,0}
How would you find the smallest?

Is this for a first year CS course in university? High school?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!