Premium Only Content

Mini-Max Sum - HackerRank - Java
Learn how to solve the HackerRank problem whose title is Mini-Max Sum, using the Java programming language.
https://www.hackerrank.com/challenges/mini-max-sum
The Data Structures and Algorithms (DSA) lesson uses a running total approach to solving the question using Java.
Traversing the array, you can keep track of the sum so far, in addition to the highest and lowest numbers seen so far.
Then later you can determine the minimum sum by subtracting the highest number and the maximum sum by subtracting the lowest number.
The time complexity for the solution is O(n) and its space complexity is O(1).
DSA problems are sometimes asked during tech job interviews for positions such as Software Engineer, so you can use the challenge to practice that skill.
-
LIVE
GritsGG
5 hours agoQuad Win Streaks!🫡 Most Wins in WORLD! 3600+
204 watching -
1:09:28
Sarah Westall
3 hours agoCan the World Be This Strange? The Nature of Our Reality w/ Darius J Wright
20.7K -
megimu32
3 hours agoOn The Subject: Friends | 31 Years of the Sitcom That Defined a Generation
27.1K4 -
30:00
BEK TV
1 day agoCounter Culture Mom
5.04K -
1:24:54
Kim Iversen
6 hours agoTylenol vs Vaccines: Which One Is The REAL Cause Of Autism? The Truth Will Upset You
58.4K60 -
LIVE
GloryJean
4 hours ago2v2 Tuesday 🔥 Night Games w/ The Boys 🖱️ 6.7 K/D
12 watching -
LIVE
XxXAztecwarrior
6 hours agoNew Season/ War Ablaze
23 watching -
LIVE
Armadillofather
3 hours agoTime for some Borderlands Chaos! | Thank you for being here!
9 watching -
1:03:39
TheCrucible
6 hours agoThe Extravaganza! EP: 41 (9/23/25)
282K18 -
1:04:36
BonginoReport
6 hours agoSpineless Google Admits Caving To Biden Admin - Nightly Scroll w/ Hayley Caronia (Ep.140)
75.8K69