6 kyu
Exclamation marks series #17: Put the exclamation marks and question marks on the balance - are they balanced?
3,357 of 7,314myjinxin2015
Description:
Each exclamation mark's weight is 2; each question mark's weight is 3. Putting two strings left
and right
on the balance - are they balanced?
If the left side is more heavy, return "Left"
; if the right side is more heavy, return "Right"
; if they are balanced, return "Balance"
.
Examples
"!!", "??" --> "Right"
"!??", "?!!" --> "Left"
"!?!!", "?!?" --> "Left"
"!!???!????", "??!!?!!!!!!!" --> "Balance"
Fundamentals
Similar Kata:
Stats:
Created | Oct 10, 2016 |
Published | Oct 10, 2016 |
Warriors Trained | 9020 |
Total Skips | 841 |
Total Code Submissions | 16122 |
Total Times Completed | 7314 |
JavaScript Completions | 3183 |
PHP Completions | 653 |
Python Completions | 3357 |
Haskell Completions | 173 |
Ruby Completions | 91 |
Julia Completions | 6 |
Total Stars | 75 |
% of votes with a positive feedback rating | 93% of 1001 |
Total "Very Satisfied" Votes | 864 |
Total "Somewhat Satisfied" Votes | 127 |
Total "Not Satisfied" Votes | 10 |
Total Rank Assessments | 8 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |