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-ൽ മാത്രം പ്രവർത്തിക്കും.