Erupting Volcanoes
-
Cypher 7 years ago only first 4 test cases passed. :( don't know what to do
-
kalpan2713 7 years ago same here bro.. any suggestion??
-
vishwasvrockstar 7 years ago try using 2d matrix of size n fill the matrix and print it..test it against huge values of n ...u may just gt to know wer u r goin wrong.
-
amitrajitbose9 7 years ago I would recommend you to think that you are creating layers of matrix of n order, then (n-1) order, then (n-2) order and so on. Start from the periphery and reach the epicentre.
Creating the final two dimensional array is the main aim. Rest is a piece of cake.
-
Cypher 7 years ago did same and nailed it:)
-
-
-
ayushparasar5 7 years ago you might want to check yourself. Try and print the whole 2D array and see for yourself where you're going wrong.
-
-
Santiftw 7 years ago Can I use numpy on python?
-
AbduAziz 7 years ago Check for this input: 5 4 0 0 4 4 0 4 0 4 4 4 4 4 Answer should be 8.
-
AnirudhMurali 7 years ago Getting 8, the sample input I gave works too. Yet, 4 testcases.
-
chaudhary__jr 7 years ago Thanks the test case helped me!
-
DriftedHawk49 7 years ago I got 8 too , sir , But only 4 test cases are being completed. :()
-
-
mittal_aayush26 7 years ago can anyone tell me what are the test cases 4,5,... For this problem?
-
15B01A0536 7 years ago I am getting only first three testcases correct can anyone help me.
-
shubham_mahawar 7 years ago same here bro
-
shubham_mahawar 7 years ago have you find out the way?
-
-
ameyanator 7 years ago Had the same mistake found the bug in my code.
Step by step analysis of the 2nd test case gave the answer
-
shubham_mahawar 7 years ago ok thanx
-
-
Sort 69 Discussions, By:
Please Log In in order to post a comment