about | help | code help+videos | done | prefs |
The string str1 is greater than the string str2 if the sum of ASCII code of all characters inside the str1 is greater than the sum of ASCII code of all characters in str2. Return true if str1 is greater than str2, and false otherwise. isGreater("a", "A") → true isGreater("a", "Z") → true isGreater("dsfsd", "zzzz") → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 105
Copyright Nick Parlante 2017 - privacy