Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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...