cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
the quickest method finding the greatest
the quickest method finding the greatest number in array
Jul 22, 2017 at 6:27pm UTC
evdo
(5)
Hello guys! i would like to learn the quickest method for finding the greatest number (interger) in an array,i know some methods but i want to learn the quickest way.
thanks for help~~!!
Jul 23, 2017 at 10:26am UTC
keskiverto
(10399)
What do you mean by "quickest"? Quick to execute, quick to program, or what?
http://www.cplusplus.com/reference/algorithm/max_element/
Jul 23, 2017 at 10:48am UTC
Flaze07
(231)
definitely fastest to execute
also I didn't know that exist thank you keskiverto
Jul 23, 2017 at 6:35pm UTC
evdo
(5)
thanks keskiverto i find what i was looking for !!
Jul 24, 2017 at 1:40am UTC
jonnin
(11429)
if very large, multi-thread might help.
If a true real time program, there may be a way to keep supplemental info that reduces the effort if needed.
Topic archived. No new replies allowed.