8 kyu
Check same case
1,504 of 25,541gladiatus55
Description:
Write a function that will check if two given characters are the same case.
- If either of the characters is not a letter, return
-1
- If both characters are the same case, return
1
- If both characters are letters, but not the same case, return
0
Examples
'a'
and 'g'
returns 1
'A'
and 'C'
returns 1
'b'
and 'G'
returns 0
'B'
and 'g'
returns 0
'0'
and '?'
returns -1
Fundamentals
Similar Kata:
Stats:
Created | Nov 19, 2019 |
Published | Nov 19, 2019 |
Warriors Trained | 47997 |
Total Skips | 1570 |
Total Code Submissions | 78645 |
Total Times Completed | 25541 |
C Completions | 1504 |
NASM Completions | 56 |
Python Completions | 11890 |
COBOL Completions | 27 |
Ruby Completions | 436 |
C# Completions | 1923 |
JavaScript Completions | 9639 |
Haskell Completions | 222 |
TypeScript Completions | 512 |
CoffeeScript Completions | 8 |
Scala Completions | 26 |
Total Stars | 414 |
% of votes with a positive feedback rating | 90% of 2405 |
Total "Very Satisfied" Votes | 2004 |
Total "Somewhat Satisfied" Votes | 339 |
Total "Not Satisfied" Votes | 62 |
Total Rank Assessments | 41 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |