Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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
12 Respostas
+ 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