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.
This solution is forcing lowercase to account for the case-insensitive constraint. Also, your solution is being redundant by checking for a bool value to return a bool value.
I tried to use intertools in former katas and it seems it's not integred in Codewars and there's no console to install it, heh.
I'm stupid xD
to be clear, this is not the best solution as it uses O(n^2 log n) time; Blind4Basics solution is better.
I didn't at once guess to combine single and double quotation marks.
that is not a palindrome
It'd work anyways.
my goal is to get my python code to look like actual python code
This is beautiful
What if length will be set to zero on purpose? It will return array sorted to the end, but should return unsorted
lol
This comment is hidden because it contains spoiler information about the solution
cool!thinking from the concept of palindrome
This fails if s = "A man, a plan, a canal – Panama". This should be part of the acceptance.
You're right... these things are not taught at schools too much. The emergence of computing brought to light some aspects of math that were less stressed before: Graph theory, Number Theory, Combinatorics, Discrete Math etc. Usually these topics are not well adressed in schools - the highschool curriculum (in many countries) is focused on algebra, calculus and geometry, and more suitable for learning physics or economics or engineering than computers.
And how needed are those hacks? when playing competitive programming or here on this site or maybe at some job interview - these tricks are awesome going from O(n) or O(n2) to easy one liner O(1)... I doubt how needed they are in real life programming. Probably not much, and if you ever need them, google them out
Loading more items...