# Weekly Challenge

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

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
SOLVED

## Challenge #159: April ENcyptanalytics

Highlighted
7 - Meteor

Spoiler

Made my Monday,  Thanks for this one.

Best,

Abi

Highlighted
Alteryx Certified Partner

Solution attached.

Spoiler
Workflow
Highlighted
8 - Asteroid

my solution:

Spoiler
Highlighted
Alteryx Community Team

@EstherB47,  I had to look it up, but was definitely worth the giggle!

https://vimeo.com/107786640

Thanks!

The amazing Mrs. G reading from BJ Novak's new book, kids love this part!
Highlighted
11 - Bolide

Wow, this one was super fun.

First, I started out with some investigation of the data from Challenge 155:

Spoiler

* Oddly enough, the A (capital A, code 65) did not occur at all in the challenge 155 data??

* For each position within the string, the correct character occurred in that position about 5x as frequently as any other character (for example, character 1 was the correct character about 5% of the time, while other characters occurred about 1% of the time)

My solution:

Spoiler
I built an app that receives a string and number of sample strings from the user:

The outer workflow checks to make sure the user has selected a number of strings that is at least 10x the length of the string.

If the number of strings is appropriate, then the macro runs. This is a separate macro 1) to prevent running the Simulation Sampling tool unless the number of strings passes the 10x test, and 2) to allow the user to dynamically input the number of iterations (strings).

The macro creates [number of strings] * [length of input string] random characters, from 32 to 130. If the random character is between 32 and 126, the related ASCII character is used. If the random character is between 127 and 130, then the correct character for the position is used (giving the correct character 4 additional "chances").

The Simulation Sampling tool seems slower vs. using Generate Rows to create the number of characters with a Formula tool to generate the random character.

Also, the Simulation Sampling tool doesn't allow a uniform discrete distribution (it only has the option for a uniform continuous distribution). I compensated by sampling between 32.0 and 130.999999 and rounding down to the nearest integer.

Finally, example output:

Spoiler

Highlighted
Alteryx Certified Partner

My solution:

Spoiler
Highlighted
Alteryx Certified Partner

I remember challenge (#155) and that was fun.

This one was tough though, so my solution ain't pretty, but I got to the result in the end

Spoiler
So I hade the same idea as many others, to create some random data, and make sure, that the string we actually want to hide, is having the most occurrences.

Well, after some time back and forth, I ended up with this.
My WorkflowIt ain't pretty but it works.

After I made it, I looked at some of the other solutions, and then I was ashamed, so I didn't even bother to make this as an app 😢

But it was still fun after all 😳

Still Climbing

/Verakso

Highlighted
Alteryx Community Team

Hi @Verakso,

You solved it!  You shared it!  We all learn!

I've gotta admit I've learned and improved my solution based on other solutions as well!

It's what makes Alteryx Community great!!!  ❤️

Thanks!

Terry T

Highlighted
Alteryx Certified Partner

Interesting Challenge

Highlighted
12 - Quasar

Solution attached.