In this series, I will walk you through Hacker Rank’s 30 days of code challenge day by day.

In Day 11, we will get more familiar with Arrays by working with 2D arrays.

Try solving it yourself!

View my solution for Day 11 at

Support me on Patreon.

#OTSC #HackerRank #Python

but with many shapes, like '+', can i do with this solution ?

can you explain why range(1, 5) ?

arr = []

for arr_i in range (6):

arr_t = [int(arr_temp)for arr_temp in input ().strip().split (' ')]

arr.append(arr_t)

u started with it.. so i wrote same things but its not worked.

Outstanding!! I learn here to validate constraint, before i'm doing in different way.

Just for the record this solution is very specific to the constraints outlined in the problem. Maybe I make my life harder but when I solve these problems I do not hard-code anything into the solution so when I solved this I could handle the matrix of any size be it 6×6 or 20×20 and I really don't care what integer is in each value of the matrix. Maybe that's why the problem is classified as easy while it takes me a while to solve it.

just cant understand why u used range(1,5) instead of range (1,4)

what keyboard are u using?

i came up with something pretty similar to this but i feel like there has to be a cleaner way to do the addition of the hour glass

I don't get how you added them. Does your row col start in the middle of the hour glass? If so, how? Can someone also explain range (1,5)? Shouldn't that be range6?

So Nice!!!!! great

Good stuff! Thank you

Hello! Will you continue posting these videos?