7 kyu
JS Golfing #8: Is it Uppercase?
326zruF
Loading description...
Puzzles
Restricted
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
What does it mean? What's
x
?JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai). Refer to this and this
Fixed here
Is this for sure solvable with 9 character code, i got it down to 10 and can't think of a shorter one?
Yes it is solvable with 9.
even with 8
Srlsly its 7kyu lvl?...-.-
Agreed. Gave it to some of my junior devs. They couldn't solve. Seems like a lot of 7 & 8 kyu challenges are incorrectly categorised like this
Well, this kata is more like a codepuzzle, so algorithmwise not really compareable to other katas... so the ranking of these katas are different. It wouldnt represent the skillset of a dev, because its a solution you could find somewhere in the internet, you don't really have to solve it, you just have to find out how :)
Approved ;-)
What's the
valid input
? "Ab"? "aB"?Perhaps say:
"Only single letter will be tested."
?EDIT:
Or, change the kata's name to
Is it Capitalize?(ie. "Abc")
orIs is PascalCase?(ie. "MyNameIsMyjinxin")
I addes some info in the description, that the input will only be one letter :-)
There should be fixed tests that cover the entire input range so wrong solutions don't happen to pass by change.
I added some fixed tests, which will prevent this solution from passing.
Why check 100 random letters? Why not just check all lowercase and all uppercase letters?