01. Equal Neighbors - Arrays Advanced - More Exercises
Здравейте, какво не е наред с тази задача - https://pastebin.com/whiRg4Qq?
Judge дава само 75/100...
1.Equal Neighbors
Write a function that finds the number of equal neighbor pairs inside a matrix of variable size and type (numbers or strings).
The input comes as array of arrays, containing string elements (2D matrix of strings).
The output is return value of you function. Save the number of equal pairs you find and return it.
Examples
Input |
Output |
|
Input |
Output |
[['2', '3', '4', '7', '0'], ['4', '0', '5', '3', '4'], ['2', '3', '5', '4', '2'], ['9', '8', '7', '5', '4']] |
1 |
[['test', 'yes', 'yo', 'ho'], ['well', 'done', 'yo', '6'], ['not', 'done', 'yet', '5']] |
2 |
Благодаря за конкретните поправки, в случая много ми помогна