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

Stats:

CreatedNov 19, 2019
PublishedNov 19, 2019
Warriors Trained47997
Total Skips1570
Total Code Submissions78645
Total Times Completed25541
C Completions1504
NASM Completions56
Python Completions11890
COBOL Completions27
Ruby Completions436
C# Completions1923
JavaScript Completions9639
Haskell Completions222
TypeScript Completions512
CoffeeScript Completions8
Scala Completions26
Total Stars414
% of votes with a positive feedback rating90% of 2405
Total "Very Satisfied" Votes2004
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