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.
Hi! Thanks for the feedback. This is my first kata, so I’m still learning. Could you give me some tips on adding sample and random tests?
accessing undeclared variables raises a warning from PHP 8 onwards, and the Codewars PHP runner treats warnings as errors and aborts execution. this solution was relying on the facts that 1) undeclared variables have a default value of
null
and 2)null
concatenated to a string acts as an empty string (!)approved
approved
approved
Thanks for the heads-up! You’re right that under this kata’s rules (ASCII letters only, case-insensitive, empty → false), “xgx” is a palindrome.
I’ve:
Please give it another try with the updated tests. If anything still looks off, ping me and I’ll adjust fast.
thank you for your response! i will work a little bit more on that kata :) i hope you enjoyed it anyway
approved
Specified in test cases
Approved
We don't have to worry about state, the star is used correctly here, if I understand what your concern is
It was supposed to be "state", not "rule". Changed to state. Given that the 3 things listed are clearly not states, this is not confusing anymore.
Different rules.
Turing machines have multiples states, all of which can have different rules that are a combination of the three rules as in this kata.
Maybe call them "state rule sets"?
there's effectively one rule. so do we need to worry about rules, or not? I honestly don't have an answer.
I changed the description so it now tells you which sybols are allowed.
Loading more items...