hey! in this problem I ma able to drive the logic and able to pass the base case the one that is given in the problem but did’nt able to clear the testcases can you please help me out
Base case was running but the testcases are not passing
can you please send your logic or the code where you have implemented it
hey @aastha011 can I have your email and please tell how do I use that doubt section properly because I did’nt really understand the best way can you give me short desc on my email
so that i can send you back my code
hey @Deepak388, logic is very simple. Just transpose the matrix and then reverse each column of transposed matrix.
@Deepak388 just open https://ide.codingblocks.com/
then paste your code on that platform
click on the save button(which is there on the top)
then share the link with me.
try to do if you don’t get it. i will help you out
I believe that the custom testcase is working fine with it but I did’nt really understand why It was not working for the Other two testCases please let me know if I have done something wrogn @aastha011 @Gaurav13998 BTW thanks guys
hey @Deepak388, your transpose logic as well as reversing column logic is not correct. Remember you need to rotate this in anticlockwise only.
Take a example on paper and then try to build logic.
hey I have checked that i did’nt find anything can you just help meout
hey @Deepak388, this is logic for transposing
for(int i=0;i<row;i++)
{
for(int j=0;j<i;j++)
{
swap(mat[i][j],mat[j][i]);
}
}
this is logic for reversing column
for(int i=0;i<row/2;i++)
{
for(int j=0;j<col;j++)
{
swap(mat[i][j],mat[row-i-1][j]);
}
}
oh thanks sir it really helpful
sir please help me as i did able to understand the platform how to get the maximum out of it
btw thanks as I am trying to understand your platform. please suggest something that can help me to improve me with the platform
hey @Deepak388, there is a document given in the staring of course. Read that one once. It explains the course in brief.
let me see if i am able to get it
hey @Deepak388 if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved
I mean how to mark it as resolved…