We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
If I'm not mistaken this solution uses 4 loops to solve the problem (:
Array.ConvertAll(arr_temp, Int64.Parse); <--- This is a loop. arr.Max(); <--- This is also a loop. arr.Min(); <--- And this is also a loop. for (int i = 0; i < arr.Length; i++) <--- This we know is a loop :D
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
If I'm not mistaken this solution uses 4 loops to solve the problem (:
Array.ConvertAll(arr_temp, Int64.Parse); <--- This is a loop. arr.Max(); <--- This is also a loop. arr.Min(); <--- And this is also a loop. for (int i = 0; i < arr.Length; i++) <--- This we know is a loop :D