5 kyu
Compare Number
122osofem
Description:
I saw @myjinxin2015's Simple Fun #264: Compare Two Integers and thought, "hey what if the two numbers ain't integers, ain't always positive and could have leading zeros?"
Compare two numbers given as strings. Return 'less' if a < b
, 'equal' if a = b
, and 'greater' if a > b
.
NOTE
- The numbers a and b are given as string
- They can be positive or negative
- They can have leading zeros in the characteristic part and trailing zero in the mantissa part
12.34
=> characteristic part = 12; mantissa part = 34
Fundamentals
Similar Kata:
Stats:
Created | May 16, 2017 |
Published | May 16, 2017 |
Warriors Trained | 410 |
Total Skips | 8 |
Total Code Submissions | 1151 |
Total Times Completed | 122 |
JavaScript Completions | 122 |
Total Stars | 9 |
% of votes with a positive feedback rating | 88% of 38 |
Total "Very Satisfied" Votes | 30 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 7 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 6 kyu |