loved the way you are adding in the count
It's a snail
Check them again, you're given an array of arrays resembling an n x n matrix, you should return an array taking elements from the top-left, to the top-right, then from top-right, to bottom-right, etc. Like shown in those pictures.
i don't know pictures aren't even helping i am not getting the pattern
There are some pictures there, what's exactly what you're not understanding from it?
well, i feel like idiot to be honest i just can't get what exactly i have to do i mean i can't get what exactly the question is
Did same solution as you just added the conditon to be sure but nice and neat in your case n % x == 0 && n % y == 0 ? true : false;
n % x == 0 && n % y == 0 ? true : false;
This comment is hidden because it contains spoiler information about the solution
i don't know how people think this is not best practice but damn this was good solution as compare to me tho
Doesn't really matter since if the if-statement executes, it will return from the function at that point.
Loading collection data...
loved the way you are adding in the count
It's a snail
Check them again, you're given an array of arrays resembling an n x n matrix, you should return an array taking elements from the top-left, to the top-right, then from top-right, to bottom-right, etc. Like shown in those pictures.
i don't know pictures aren't even helping i am not getting the pattern
There are some pictures there, what's exactly what you're not understanding from it?
well, i feel like idiot to be honest i just can't get what exactly i have to do i mean i can't get what exactly the question is
Did same solution as you just added the conditon to be sure but nice and neat in your case
n % x == 0 && n % y == 0 ? true : false;
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
i don't know how people think this is not best practice but damn this was good solution as compare to me tho
Doesn't really matter since if the if-statement executes, it will return from the function at that point.
This comment is hidden because it contains spoiler information about the solution