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.
that is not a palindrome
This is a cool solution and it taught me something about Go. Thanks!
Such inputs are not considered palindromes in this task. Not a kata issue.
This kata might be of interest to you: https://www.codewars.com/kata/53046ceefe87e4905e00072a.
An s = "A man, a plan, a canal – Panama" should be added to the test cases.
This fails if s = "A man, a plan, a canal – Panama". This should be part of the acceptance.
This solution fails due to rounding errors when converting between float64 and int with large numbers
Seems that the internal implementation details is complex comparative to using a buffer - especially in terms of code conciseness. Just an opinion tho.
LOL! It look like cheat =))
The source code of strings.Repeat implementation should be the clever answer to this kata.
Fails for a solution where N == 0. Returns true, but should return false.
adding:
if (n == 0) return false;
fixes it, but it's not as pretty...
I've tried a few solutions, but I can't get it to complete either. I wonder if something has changed.