7 kyu

Selective fear of numbers

2,224 of 7,686Jotha

Description:

I've got a crazy mental illness. I dislike numbers a lot. But it's a little complicated: The number I'm afraid of depends on which day of the week it is... This is a concrete description of my mental illness:

Monday --> 12

Tuesday --> numbers greater than 95

Wednesday --> 34

Thursday --> 0

Friday --> numbers divisible by 2

Saturday --> 56

Sunday --> 666 or -666

Write a function which takes a string (day of the week) and an integer (number to be tested) so it tells the doctor if I'm afraid or not. (return a boolean)

Fundamentals

More By Author:

Check out these other kata created by Jotha

Stats:

CreatedJul 24, 2015
PublishedJul 24, 2015
Warriors Trained10691
Total Skips301
Total Code Submissions22593
Total Times Completed7686
JavaScript Completions2224
Python Completions2480
Ruby Completions298
C# Completions934
Haskell Completions163
C++ Completions588
NASM Completions11
C Completions180
Java Completions875
TypeScript Completions254
Julia Completions8
Total Stars80
% of votes with a positive feedback rating88% of 858
Total "Very Satisfied" Votes688
Total "Somewhat Satisfied" Votes133
Total "Not Satisfied" Votes37
Ad
Contributors
  • Jotha Avatar
  • Abbe Avatar
  • bkaes Avatar
  • GiacomoSorbi Avatar
  • chris_w Avatar
  • ParanoidUser Avatar
  • Goncalerta Avatar
  • Voile Avatar
  • rowcased Avatar
  • clcraig Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • ejini战神 Avatar
  • mauro-1 Avatar
  • Just4FunCoder Avatar
Ad