This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!
Submit FeedbackLast week's solution can be found here.
This week's solution is working to permute some data! This challenge is derived from an question asked by @iellingsonbg, and was solved by the illustrious @MarqueeCrew. @MarqueeCrew then messaged us letting us know a great challenge was available that we should tackle! If you ever have a great challenge of your own or see another problem around the Community worth tackling, let us know!
As for the challenge itself, we are presented the options (tools). What we would like to do is determine all the combinations these tools can exist in an 'on/off' state. For three options we can see the following combinations. Note that the end result data is not formatted this way, but simple formatted here for ease of understanding.
Browse | Input | Output |
Off | Off | Off |
Off | Off | On |
Off | On | Off |
Off | On | On |
On | Off | Off |
On | Off | On |
On | On | Off |
On | On | On |
If you want to take a more difficult route, try to setup your workflow where it would be dynamic to handle more than three tool options and more toggle options than on/off!
Illustrious is very kind of you. I'll defer posting a solution until the real challenge guru's come up with some interesting alternatives.
Cheers,
Mark
I had a little bit of a headstart as I tried to solve @iellingsonbg's original problem. Thanks @MarqueeCrew for putting this as a weekly challenge!
Browse | Input | Output |
0 | 0 | 0 |
0 | 0 | 1 |
0 | 1 | 0 |
0 | 1 | 1 |
1 | 0 | 0 |
1 | 0 | 1 |
1 | 1 | 0 |
1 | 1 | 1 |
Browse | Input | Output | Binary | Decimal |
0 | 0 | 0 | 000 | 0 |
0 | 0 | 1 | 001 | 1 |
0 | 1 | 0 | 010 | 2 |
0 | 1 | 1 | 011 | 3 |
1 | 0 | 0 | 100 | 4 |
1 | 0 | 1 | 101 | 5 |
1 | 1 | 0 | 110 | 6 |
1 | 1 | 1 | 111 | 7 |
How horizontal of you! Have you switched axis? I haven't noticed before.
Cheers,
Mark
@MarqueeCrew I've finally given in on the weekly challenges. In my younger days I would change the weekly challenge to vertical before starting. I get along with @JoeM on most things but canvas layout direction is one we don't agree on. #Vertical.
@patrick_digan next I'll be seeing you sitting next to me on an airplane!
High School Math to the Rescue!
Thanks for the challenge @MarqueeCrew
Dan