8 kyu
Check same case
1,496 of 25,342gladiatus55
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 | 47705 |
Total Skips | 1557 |
Total Code Submissions | 78052 |
Total Times Completed | 25342 |
C Completions | 1496 |
NASM Completions | 56 |
Python Completions | 11798 |
COBOL Completions | 27 |
Ruby Completions | 436 |
C# Completions | 1898 |
JavaScript Completions | 9575 |
Haskell Completions | 220 |
TypeScript Completions | 497 |
CoffeeScript Completions | 8 |
Scala Completions | 26 |
Total Stars | 411 |
% of votes with a positive feedback rating | 90% of 2399 |
Total "Very Satisfied" Votes | 1998 |
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 |