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.
omg
nice move dude
Very clever! haha
//
But there is no "Z"
Why is it clever?
Very efficient and easy on the eyes, but this code fails case-sensitivity (even though the challenge didn't really specify.) :)
I knew there would be a way to do this with replaces, clever
basically did the same but just using the lowercase
Clever and simple, I think it shortened by replacing them with lowercase values and just call to uppercase at end.
I did something very similar. Only difference is I mapped all 4 of "T", "A", "C", and "G" to different characters before doing another 4 "replaceAll()"s. So this runs slightly faster than mine. Good job!
I was wondering for a while why you use the straightCardDiff variable.
You use it to compare the first card, the one with the lowest value, with 4 later, the 5th one, the last of the hand. What you say is "if the first card, adding 4 to it, is of the same value as 4 cards later, then we have 5 consecutive cards".
👍
clever yet simple idea!