Your solution is incorrect. It returns true for inputs which are not valid PINs, like "1234.0".
true
"1234.0"
your solution has a bug, it's not a kata issue.
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
Your solution is incorrect. It returns
true
for inputs which are not valid PINs, like"1234.0"
.your solution has a bug, it's not a kata issue.
This comment is hidden because it contains spoiler information about the solution