Click here to Skip to main content
15,947,476 members

Comments by Imashika Lasanthi (Top 11 by date)

Imashika Lasanthi 26-Feb-23 6:22am View    
Deleted
I have uploaded a snapshot of my work into google drive. I have mentioned the link below. so you can understand my problem deeply.

https://drive.google.com/file/d/13Ig6JrWmGuxQcU8VcpQJx_2jC1eC6PUD/view?usp=sharing
Imashika Lasanthi 26-Feb-23 6:13am View    
Deleted
I have uploaded a snapshot of my work into google drive. I have mentioned the link below. so you can understand my problem deeply.

https://drive.google.com/file/d/13Ig6JrWmGuxQcU8VcpQJx_2jC1eC6PUD/view?usp=sharing
Imashika Lasanthi 26-Feb-23 5:53am View    
there is no bug. the code is wright. and there are 4 test cases in there. they are as follow.

Return type should be a number.


calculateStepCount([[1, 2, 3], [5, 4, 6], [7, 8, 9]], [[1, 2, 3], [4, 5, 6], [7, 8, 9]]); // should return 1

calculateStepCount([[1, 2, 3], [4, 5, 6], [7, 8, 9]], [[1, 2, 3], [4, 5, 6], [7, 8, 9]]); // should return 0

the answer should be valid for any given input.


in my assignment, I have to fulfill these four and get a tick mark for all the above cases separately. In my code, the tick mark falls on the first three. The last one is not complete. That's why I asked you what I need to change in my code for that.
Imashika Lasanthi 26-Feb-23 4:46am View    
I have developed the code and

Return type should be a number.


calculateStepCount([[1, 2, 3], [5, 4, 6], [7, 8, 9]], [[1, 2, 3], [4, 5, 6], [7, 8, 9]]); // should return 1

calculateStepCount([[1, 2, 3], [4, 5, 6], [7, 8, 9]], [[1, 2, 3], [4, 5, 6], [7, 8, 9]]); // should return 0 these test cases are fulfill.

I am stuck with what should I do to fulfill final test case
Imashika Lasanthi 26-Feb-23 4:44am View    
Deleted