6 kyu
One Line Task: Makes 10
195myjinxin2015
Description:
Task
Given two integers a
and b
in range 1..20
, return true
if one of them is 10
or if their sum is 10
, false
otherwise.
Code Limit
Less than 36
characters.
Example
For a = 1, b = 10
, the answer is true
.
Because b
is 10
.
For a = 10, b = 1
, the answer is true
.
Because a
is 10
.
For a = 1, b = 9
, the answer is true
.
Because a+b
is 10
.
For a = 1, b = 2
, the answer is false
.
Because there is no 10
.
Puzzles
Restricted
Similar Kata:
Stats:
Created | May 10, 2017 |
Published | May 10, 2017 |
Warriors Trained | 563 |
Total Skips | 8 |
Total Code Submissions | 6289 |
Total Times Completed | 195 |
JavaScript Completions | 195 |
Total Stars | 13 |
% of votes with a positive feedback rating | 88% of 83 |
Total "Very Satisfied" Votes | 68 |
Total "Somewhat Satisfied" Votes | 10 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 5 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 6 kyu |