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

Stats:

CreatedNov 19, 2019
PublishedNov 19, 2019
Warriors Trained47705
Total Skips1557
Total Code Submissions78052
Total Times Completed25342
C Completions1496
NASM Completions56
Python Completions11798
COBOL Completions27
Ruby Completions436
C# Completions1898
JavaScript Completions9575
Haskell Completions220
TypeScript Completions497
CoffeeScript Completions8
Scala Completions26
Total Stars411
% of votes with a positive feedback rating90% of 2399
Total "Very Satisfied" Votes1998
Total "Somewhat Satisfied" Votes339
Total "Not Satisfied" Votes62
Total Rank Assessments41
Average Assessed Rank
7 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • gladiatus55 Avatar
  • anter69 Avatar
  • JohanWiltink Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • uniapi Avatar
  • albertogcmr Avatar
  • trashy_incel Avatar
  • akar-0 Avatar
  • XoRMiAS Avatar
  • NikCSharp Avatar
  • MingLeeNg Avatar
  • KayleighWasTaken Avatar
Ad