8 kyu
Opposites Attract
67,291 of 193,624jbarget
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 | 253949 |
Total Skips | 14039 |
Total Code Submissions | 416178 |
Total Times Completed | 193624 |
JavaScript Completions | 67291 |
C# Completions | 10912 |
Python Completions | 62006 |
Haskell Completions | 1298 |
CoffeeScript Completions | 109 |
Ruby Completions | 3809 |
Elixir Completions | 587 |
PHP Completions | 4056 |
Java Completions | 18536 |
Scala Completions | 775 |
Groovy Completions | 145 |
Julia Completions | 179 |
Kotlin Completions | 2796 |
Crystal Completions | 50 |
Erlang Completions | 153 |
C++ Completions | 11841 |
TypeScript Completions | 2737 |
C Completions | 4383 |
R Completions | 332 |
NASM Completions | 87 |
COBOL Completions | 53 |
Rust Completions | 2158 |
Go Completions | 2555 |
OCaml Completions | 161 |
SQL Completions | 2669 |
Lua Completions | 46 |
Total Stars | 923 |
% of votes with a positive feedback rating | 92% of 11799 |
Total "Very Satisfied" Votes | 10193 |
Total "Somewhat Satisfied" Votes | 1439 |
Total "Not Satisfied" Votes | 167 |