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.
- Mini-Max Sum
- Discussions
Mini-Max Sum
Mini-Max Sum
Sort by
recency
|
283 Discussions
|
Please Login in order to post a comment
python code, simple and easy to understand
Java Solution Easy to understand public static void miniMaxSum(List arr) {
// java code
// C# error
Hi Jordan, our solutions aren't quite the same but I was also getting an error I had to convert the original List to a long first using the List.ConvertAll()
So I had something like List arrLong = arr.ConvertAll(x => (long)x);
That fixed my problem if you're still having problems let me know and I'll see if I can help you.