+ 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
13 Antworten
+ 11
My solution:
https://code.sololearn.com/W4iIlZgObLTG/?ref=app
+ 22
I believe that you all have the same opinion as I do
&&
@Jonathan Pizarra's answer
is 🏁 TheBest !! 🏁 👍👌
Congratulations !! 👏👏 😊
+ 20
🆒 @Infinity 🆒
Thanks a lot mate !! 👍😆
I'm glad you like it. 👏👌😉
+ 20
@Arman
Thanks a lot 👍
but SoloLearn is here for us 😊
&&
for everything we need !! 🤗👍
+ 19
My solution is a real school example
to learn Java !! 😆😁
https://code.sololearn.com/cVK1kkCVdv29/?ref=app
+ 16
https://code.sololearn.com/cci3Po7yo3Gh/?ref=app
+ 16
Cool challenge!
+ 5
Oneliner (somehow) in Python:
https://code.sololearn.com/c7Mfud5Kies8/?ref=app
+ 5
Here's an AngularJs version:
https://code.sololearn.com/W4ByLc5PFTtr/#js
+ 4
https://code.sololearn.com/cHzA4ZQumcJ5/?ref=app
+ 2
My attempt in Ruby
https://code.sololearn.com/c62971eiA86W/?ref=app