Want to verify my code

Hello, here is my code for printing all the submatrices and printing their sum with it.

Could you please check it ?

hello @yashsharma4304 have you tried submitting your code anywhere ?

No I have just tried it by myself therefore I want it to be checked by someone ? So that if there are any problems I can improve them.

@yashsharma4304 okay please wait let me go throgh your code .

1 Like

your answer is coming out to be correct but i think there must be some optimised approach as well in your portal .

yeah I am currently learning those approach in further lectures which can optimize my code. But thanks for checking my code :slightly_smiling_face: