4. Utility functions #
Created Sunday 03 May 2020
- swap() is a ubiquitous functions which is used to swap values, deeply.
- max(int x, int y)
- min(int x, int y)
- min_element(first, after end) returns the iterator of the first occurring minimum element. stdc++.h
- max_element(first, after end) returns the iterator of the first occurring maximum element. stdc++.h
- find(first, last, key) - returns the first item iterator if found by appropriate search
- minmax_element - returns a pair containing minimum and maximum
Special case:
- memset(
* arr, value, int length_of_array)