I will probably revamp the test cases later to make this a more constructive kata and gradually test each edge case.
I'll revert back to a lower constraint (<= 200) seeing how its a pain to scroll through 1000 characters (the point was to avoid people from hard coding)
Ill leave it up to future testers to vote if n, m = 1 is enough to warrant new edge cases. The main objective of this kata is within the amount of x and y palindromes.
Input range is not specified, and it is implicitly assumed that 2 <= n, m <= 100 and 0 <= x, y <= n, m. There is a whole class of edge cases at n = 1/m = 1 but currently it's not tested.
alternatively you could mod by 1e9 + 7. https://www.geeksforgeeks.org/modulo-1097-1000000007/
this looks like some hard graph theory
This is the best kata about palindromes, well done.
great, points 1 and 2 are most important
n
orm
< 2I have specified
2 <= n, m <= 1000
and0 <= x, y <= n, m
and also raised the constraintsInput range is not specified, and it is implicitly assumed that
2 <= n, m <= 100
and0 <= x, y <= n, m
. There is a whole class of edge cases atn = 1
/m = 1
but currently it's not tested..
This comment is hidden because it contains spoiler information about the solution
updated description
I think you mean "if the entire row/column is a palindrome".
i will specify a few things
a - z
Loading more items...