|
-
September 23rd, 2011, 06:17 AM
#2
Re: Psuedocode, finding highest value in an array
Finding extreme values is standard procedure.
Introduce a variable called maxValue or something. Assign the first value of the array to maxValue. Then loop through all values in the array once and for each value check whether it's higher than maxValue. If it is, assigned it to maxValue. Afterwards maxValue will hold the highest value of the array.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|