Lesson 11 of 24
STL Algorithms: sort, reverse, find
10 min 30 XP
<algorithm>-ல் தயாரான algorithms: sort, reverse, max_element, min_element, count, find, binary_search. <numeric>-ல் accumulate. ஒரு வரியில் பெரிய வேலை!
Example: edit me and press Run
Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.sort() சராசரியாக O(n log n). binary_search sorted vector-ல் மட்டுமே சரியாக வேலை செய்யும்.