Bug Report for https://neetcode.io/problems/foreign-dictionary
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
for n==1 , if i return the word itself, the solution is accepted. but it should not.
Input "zzzzzoo"
return "zo" or "oz"
but if i return the word itself, it's still accpted
Bug Report for https://neetcode.io/problems/foreign-dictionary
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
for n==1 , if i return the word itself, the solution is accepted. but it should not.
Input "zzzzzoo"
return "zo" or "oz"
but if i return the word itself, it's still accpted