+ 24

[ CHALLENGE: ] HourGlass [ 2D_Array ]

TASK : Given a 6 * 6 2D_Array, A Calculate the hourglass sum for every hourglass in A, then print the maximum hourglass sum. Input Format : There are 6 lines of input, where each line contains 6 space-separated integers describing 2D_Array A; every value in A will be in the inclusive range of -9 to 9. Output Format : Print the largest (maximum) hourglass sum found in A. Happy Coding!! 👍😊 EXPLANATION !! https://code.sololearn.com/c8n17R2fyzsI/?ref=app

31st Jan 2018, 11:24 AM
Danijel Ivanović
Danijel Ivanović - avatar
13 Answers
31st Jan 2018, 3:58 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 22
I believe that you all have the same opinion as I do && @Jonathan Pizarra's answer is 🏁 TheBest !! 🏁 👍👌 Congratulations !! 👏👏 😊
31st Jan 2018, 5:36 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 20
🆒 @Infinity 🆒 Thanks a lot mate !! 👍😆 I'm glad you like it. 👏👌😉
1st Feb 2018, 12:50 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 20
@Arman Thanks a lot 👍 but SoloLearn is here for us 😊 && for everything we need !! 🤗👍
1st Feb 2018, 2:02 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 19
My solution is a real school example to learn Java !! 😆😁 https://code.sololearn.com/cVK1kkCVdv29/?ref=app
31st Jan 2018, 3:50 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 16
https://code.sololearn.com/cci3Po7yo3Gh/?ref=app
31st Jan 2018, 2:52 PM
LukArToDo
LukArToDo - avatar
+ 16
Cool challenge!
1st Feb 2018, 12:47 PM
Abhishek Tandon
Abhishek Tandon - avatar
31st Jan 2018, 2:19 PM
Cool Codin
Cool Codin - avatar
31st Jan 2018, 9:52 PM
LunarCoffee
LunarCoffee - avatar
+ 5
Here's an AngularJs version: https://code.sololearn.com/W4ByLc5PFTtr/#js
2nd Feb 2018, 12:10 PM
Luc Hariman Randrianomenjanahary
Luc Hariman Randrianomenjanahary - avatar
+ 4
https://code.sololearn.com/cHzA4ZQumcJ5/?ref=app
31st Jan 2018, 10:01 PM
wolfsan
wolfsan - avatar
1st Feb 2018, 10:10 AM
Jente