STL's EASY WAY TO FIND maximum & minimum IN AN ARRAY

 *max_element(a,a+n)-*min_element(a,a+n)






Comments

Popular posts from this blog

Getting Started With MEAN App Development with AngularJs , ExpressJs , NodeJs and MongoDB.

B. Dreamoon and WiFi :calculate no. of ways : recursive solution (branch and bound )

A. Dreamoon and Stairs : minimum steps to reach : recursion solution.