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
Similar Kata:
Stats:
Created | Jun 23, 2016 |
Published | Jun 23, 2016 |
Warriors Trained | 18237 |
Total Skips | 3950 |
Total Code Submissions | 70888 |
Total Times Completed | 6777 |
C# Completions | 416 |
JavaScript Completions | 1485 |
PHP Completions | 696 |
C++ Completions | 1209 |
Ruby Completions | 243 |
Python Completions | 1658 |
CoffeeScript Completions | 15 |
Java Completions | 896 |
TypeScript Completions | 270 |
Haskell Completions | 112 |
C Completions | 82 |
Total Stars | 209 |
% of votes with a positive feedback rating | 84% of 1272 |
Total "Very Satisfied" Votes | 944 |
Total "Somewhat Satisfied" Votes | 255 |
Total "Not Satisfied" Votes | 73 |
Total Rank Assessments | 11 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |