7 kyu
Odd or Even?
51,977 of 146,856ethaning
Description:
Task:
Given a list of integers, determine whether the sum of its elements is odd or even.
Give your answer as a string matching "odd"
or "even"
.
If the input array is empty consider it as: [0]
(array with a zero).
Examples:
Input: [0]
Output: "even"
Input: [0, 1, 4]
Output: "odd"
Input: [0, -1, -5]
Output: "even"
Have fun!
Fundamentals
Arrays
Similar Kata:
Stats:
Created | Jun 20, 2017 |
Published | Jun 20, 2017 |
Warriors Trained | 180903 |
Total Skips | 12078 |
Total Code Submissions | 284055 |
Total Times Completed | 146856 |
JavaScript Completions | 51977 |
Java Completions | 16202 |
Crystal Completions | 64 |
C# Completions | 7664 |
Haskell Completions | 962 |
PHP Completions | 4696 |
Python Completions | 49548 |
Ruby Completions | 3050 |
Groovy Completions | 131 |
NASM Completions | 74 |
Rust Completions | 2062 |
Julia Completions | 108 |
TypeScript Completions | 2841 |
Prolog Completions | 60 |
C Completions | 3105 |
CFML Completions | 29 |
Clojure Completions | 199 |
C++ Completions | 5697 |
CoffeeScript Completions | 22 |
Dart Completions | 1049 |
Lua Completions | 217 |
Scala Completions | 94 |
RISC-V Completions | 13 |
Total Stars | 665 |
% of votes with a positive feedback rating | 92% of 9864 |
Total "Very Satisfied" Votes | 8419 |
Total "Somewhat Satisfied" Votes | 1272 |
Total "Not Satisfied" Votes | 173 |
Total Rank Assessments | 56 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |