Lesson 11 of 24
STL Algorithms: sort, reverse आणि find
10 min 30 XP
<algorithm> तुम्हाला तयार 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 range वर चालते.