You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(or some equivalent Boolean transformation). Fine as far as it goes, but there's a missed opportunity to make this code clear, simple, and readable, in a way that matches the English description of the problem. Something along these lines:
This is a common side exercise, probably because it looks (and is) pretty simple. Some people even attempt this before Two Fer.
Every solution, without exception, looks like this:
(or some equivalent Boolean transformation). Fine as far as it goes, but there's a missed opportunity to make this code clear, simple, and readable, in a way that matches the English description of the problem. Something along these lines:
(Not saying this is the perfect solution, but it illustrates what I'm talking about.)
The text was updated successfully, but these errors were encountered: