8 kyu
Is the string uppercase?
1,812 of 73,661donaldsebleung
Description:
Is the string uppercase?
Task
Create a method to see whether the string is ALL CAPS.
Examples (input -> output)
"c" -> False
"C" -> True
"hello I AM DONALD" -> False
"HELLO I AM DONALD" -> True
"ACSKLDFJSgSKLDFJSKLDFJ" -> False
"ACSKLDFJSGSKLDFJSKLDFJ" -> True
In this Kata, a string is said to be in ALL CAPS whenever it does not contain any lowercase letter so any string containing no letters at all is trivially considered to be in ALL CAPS.
Fundamentals
Strings
Similar Kata:
Stats:
Created | Feb 24, 2016 |
Published | Feb 24, 2016 |
Warriors Trained | 113933 |
Total Skips | 7212 |
Total Code Submissions | 234666 |
Total Times Completed | 73661 |
Ruby Completions | 1812 |
JavaScript Completions | 21982 |
CoffeeScript Completions | 40 |
C# Completions | 4342 |
Haskell Completions | 712 |
Python Completions | 27078 |
Elixir Completions | 494 |
C Completions | 2136 |
NASM Completions | 81 |
PHP Completions | 2088 |
Forth Completions | 28 |
Go Completions | 3076 |
TypeScript Completions | 1556 |
Julia Completions | 75 |
Crystal Completions | 24 |
Racket Completions | 71 |
Dart Completions | 1796 |
Reason Completions | 19 |
C++ Completions | 7160 |
Factor Completions | 35 |
COBOL Completions | 25 |
Lua Completions | 313 |
Scala Completions | 156 |
RISC-V Completions | 34 |
OCaml Completions | 118 |
Java Completions | 711 |
Kotlin Completions | 219 |
Total Stars | 695 |
% of votes with a positive feedback rating | 85% of 5418 |
Total "Very Satisfied" Votes | 4152 |
Total "Somewhat Satisfied" Votes | 948 |
Total "Not Satisfied" Votes | 318 |