Today’s code challenge is about being cool.
Problem Description:
A number is cool if it’s a multiple of 11 or if it is one more than a multiple of 11.
Return true if the given non-negative number is cool.
Today’s code challenge is about being cool.
Problem Description:
A number is cool if it’s a multiple of 11 or if it is one more than a multiple of 11.
Return true if the given non-negative number is cool.
Continuing our Swift 3 Challenges today’s challenge has to do with order.
Problem Description:
Given three ints, first, second, third, return true if
the second is greater than first, and third is greater than second.
However, with the exception that if the parameter “itsOk” is true,
second does not need to be greater than first but still better be less than third.
Another day, another Swift 3 puzzle. This one is about singing birds. Remember to try it before you look at my solution.
The problem description states:
The birds in Florida like to sing during favorable temperatures.
In particular, they sing if the temperature is between 60 and 90 (inclusive).
Unless it is summer, then the upper limit is 100 instead of 90.
Given an int temperature and a boolean isSummer,
return true if the birds are singing and false otherwise.