Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #154: Permute the Data

JamesCameron
8 - Asteroid

My Effort

 

Spoiler
JamesCameron_0-1580920613673.png
tiffanyshaw
8 - Asteroid
Spoiler
tiffanyshaw_0-1581531357374.png

 

dsmdavid
11 - Bolide

Not the most efficient way, but dynamic for Number of tools and number of toggles.

Spoiler
dsmdavid_0-1582589811045.png


Macro:

dsmdavid_1-1582589944973.png

Example with 4 tools and 3 toggles:

dsmdavid_2-1582590108039.png

 

johnemery
11 - Bolide

Whew!

 

That was a good workout. I hate hard-coding values, so I made mine as dynamic as possible.

 

Spoiler
If you pivot the output data you may notice a pattern: each permutation can be viewed as a binary (in this case) representation ON/ON/ON = 111, for instance. With that observation, I set about counting the number of possible permutations = [Number Configurations]^[Number of Options] = 2^3 = 8 in this case.

I then needed to convert the numbers 0 through 7 into binary, which is what the macro does, padding each number with zeroes to the left to give it the necessary length.

I didn't perform extensive testing, but I'm pretty sure my converter macro will work up to Base 9. Not actually sure what happens if you try Base 11+, since those need new characters...

With the base conversion done, standard tools come into play: tokenize by rows, do some joins, and bada bing.

Very good challenge!
Macro Capture.PNGWorkflow Capture.PNG
atcodedog05
22 - Nova
22 - Nova

On a spree to binge complete weekly challenges
Adrenaline rush

 

Spoiler
Solved the easy way. Might want to build a iterative macro to make it dynamic

atcodedog05_0-1586069401321.png

 

KevinTang
8 - Asteroid

Don't need many tools, but thinking through how to implement the logic is a bit of tricky, anyway, successfully finished the challenge with dynamic number of options using a little iterative macro

 

Spoiler
Annotation 2020-04-09 151235.pngAnnotation 2020-04-09 151307.png

 

Jean-Balteryx
16 - Nebula
16 - Nebula

Here is my solution !

Nicholas_Bignell
8 - Asteroid
balajilolla
8 - Asteroid
Spoiler
Solution Attached

balajilolla_0-1590417142230.png

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Challenge 154 is done!

 

Spoiler
Jonathan-Sherman_0-1590501711844.png