7 kyu

Compare Strings by Sum of Chars

416 of 6,777user5036852

Description:

Compare two strings by comparing the sum of their values (ASCII character code).

  • For comparing treat all letters as UpperCase
  • null/NULL/Nil/None should be treated as empty strings
  • If the string contains other characters than letters, treat the whole string as it would be empty

Your method should return true, if the strings are equal and false if they are not equal.

Examples:

"AD", "BC"  -> equal
"AD", "DD"  -> not equal
"gf", "FG"  -> equal
"zz1", ""   -> equal (both are considered empty)
"ZzZz", "ffPFF" -> equal
"kl", "lz"  -> not equal
null, ""    -> equal
Mathematics
Strings
Fundamentals

Stats:

CreatedJun 23, 2016
PublishedJun 23, 2016
Warriors Trained18237
Total Skips3950
Total Code Submissions70888
Total Times Completed6777
C# Completions416
JavaScript Completions1485
PHP Completions696
C++ Completions1209
Ruby Completions243
Python Completions1658
CoffeeScript Completions15
Java Completions896
TypeScript Completions270
Haskell Completions112
C Completions82
Total Stars209
% of votes with a positive feedback rating84% of 1272
Total "Very Satisfied" Votes944
Total "Somewhat Satisfied" Votes255
Total "Not Satisfied" Votes73
Total Rank Assessments11
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user5036852 Avatar
  • smepple Avatar
  • asmgf Avatar
  • GiacomoSorbi Avatar
  • suic Avatar
  • anter69 Avatar
  • Dentzil Avatar
  • kazk Avatar
  • asedov Avatar
  • Voile Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • solitude Avatar
  • trashy_incel Avatar
  • saudiGuy Avatar
Ad