Now you are a doctor.
You are working with a patient's body which has many cells.
The patient's body is a matrix where every row represents a cell.
Each cell contains just uppercase and lowercase letters,
and every cell in the body should be the same.
Oh no! It seems that one of the cells have mutated!
It is your job to locate the mutation so that the chemo specialists can fix it!
return the location [i,j] within the matrix...
before it's too late! :(
example:
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecadecells <- here it is! [9, 20]
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
cellscellscellscodecodecells
no bodies will have less than 3 cells.
if the diagnose was a false alarm, return an empty array.
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #92 Bit calculator (5kyu) (0) | 2018.08.07 |
---|---|
codewars #91 Find X (6kyu) (0) | 2018.08.06 |
codewars #89 Mexican Wave (6kyu) (0) | 2018.07.31 |
codewars #88 Which are in? (6kyu) (0) | 2018.07.30 |
codewars #87 Extract the IDs from the data set (6kyu) (0) | 2018.07.27 |