Beta
Return Even Whatever You've Been Given
221 of 308ilya_plotnikov
Description:
Given integer n
return even numbers as they are, but subtract 1 from odd numbers.
Your solution should be 32 or less characters long.
Examples
Input = 3
Output = 2
Input = 16
Output = 16
Input = 45
Output = 44
Fundamentals
Algorithms
Similar Kata:
Stats:
Created | Oct 15, 2020 |
Published | Oct 15, 2020 |
Warriors Trained | 490 |
Total Skips | 8 |
Total Code Submissions | 3663 |
Total Times Completed | 308 |
Python Completions | 221 |
JavaScript Completions | 103 |
Total Stars | 7 |
% of votes with a positive feedback rating | 80% of 220 |
Total "Very Satisfied" Votes | 163 |
Total "Somewhat Satisfied" Votes | 28 |
Total "Not Satisfied" Votes | 29 |
Total Rank Assessments | 183 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |