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
Help with binary search
Help with binary search
Sep 2, 2013 at 6:16am UTC
azntrindo
(43)
Solved ty!
Last edited on
Sep 2, 2013 at 6:48am UTC
Sep 2, 2013 at 6:37am UTC
abhishekm71
(820)
Your array is in descending order. Swap the statements for < and > conditions.
Sep 2, 2013 at 6:44am UTC
azntrindo
(43)
ah got it thank you!
Last edited on
Sep 2, 2013 at 6:48am UTC
Sep 2, 2013 at 6:49am UTC
abhishekm71
(820)
No... swap lines 56 and 60.
Topic archived. No new replies allowed.