I'm sorry, but it seems like you've lost the challenge somewhere.
At first I thought I've probably missed something, but then I saw the comments and realized it wasn't me, it was whoever came up with this challenge.
If I may offer a twist - Do it in a language you've never worked with before. I'll take Scala for a ride on this one:
object challenge { def setAlarm( employed:Boolean, vacation:Boolean ) : Boolean = { return employed && !vacation } }
Nope, sorry, still too easy.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm sorry, but it seems like you've lost the challenge somewhere.
At first I thought I've probably missed something, but then I saw the comments and realized it wasn't me, it was whoever came up with this challenge.
If I may offer a twist - Do it in a language you've never worked with before.
I'll take Scala for a ride on this one:
Nope, sorry, still too easy.