8 kyu
Opposites Attract
67,256 of 193,487jbarget
Description:
Timmy & Sarah think they are in love, but around where they live, they will only know once they pick a flower each. If one of the flowers has an even number of petals and the other has an odd number of petals it means they are in love.
Write a function that will take the number of petals of each flower and return true if they are in love and false if they aren't.
Fundamentals
Similar Kata:
Stats:
Created | May 11, 2015 |
Published | May 11, 2015 |
Warriors Trained | 253757 |
Total Skips | 14030 |
Total Code Submissions | 415890 |
Total Times Completed | 193487 |
JavaScript Completions | 67256 |
C# Completions | 10906 |
Python Completions | 61955 |
Haskell Completions | 1298 |
CoffeeScript Completions | 109 |
Ruby Completions | 3806 |
Elixir Completions | 587 |
PHP Completions | 4056 |
Java Completions | 18517 |
Scala Completions | 775 |
Groovy Completions | 145 |
Julia Completions | 178 |
Kotlin Completions | 2795 |
Crystal Completions | 50 |
Erlang Completions | 153 |
C++ Completions | 11834 |
TypeScript Completions | 2733 |
C Completions | 4377 |
R Completions | 332 |
NASM Completions | 87 |
COBOL Completions | 53 |
Rust Completions | 2156 |
Go Completions | 2551 |
OCaml Completions | 161 |
SQL Completions | 2668 |
Lua Completions | 46 |
Total Stars | 923 |
% of votes with a positive feedback rating | 92% of 11796 |
Total "Very Satisfied" Votes | 10190 |
Total "Somewhat Satisfied" Votes | 1439 |
Total "Not Satisfied" Votes | 167 |