Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
New content is available in Academy! You may need to clear your browser cache for an optimal viewing experience
SOLVED

Challenge #135: Locker Problem

Highlighted
Asteroid
 
Alteryx Partner
Spoiler
jv1_0-1578406004632.png
Highlighted
Asteroid
 
Highlighted
Meteoroid

Enjoyed this one, thanks! My solution attached and screenshots below.....

 

 

Spoiler
I used an iterative macro with a Modulo (mod) function.

Main workflow:
stephM_2-1579168552325.png

Iterative macro:
stephM_1-1579168522467.png 

 

Highlighted
Meteoroid
 
Highlighted
Asteroid

My Effort

 

Spoiler
It helped knowing that the answer was the square numbers less than 1000 - the power of Maths!

Flow

JamesCameron_0-1579859851689.png

Macro

 

JamesCameron_1-1579859876265.png

Highlighted
Meteor

Solution 

Highlighted
Asteroid
Spoiler
Workflow:
Challenge 135 2020-01-28.jpg
Iterative macro:
Challenge 135 macro 2020-01-28.jpg
Highlighted
Asteroid
Spoiler
2020-01-26 20_08_03-Greenshot.png2020-01-26 20_08_31-Greenshot.png
Highlighted

Fun one! It made me wonder how many times the students would have to run through this exercise until all of the lockers were closed again.

Spoiler
sonyakasenkramer_0-1581517307712.pngsonyakasenkramer_1-1581517408043.png

The answer is one more full iteration of 1,000 students. Seemed like that couldn't possibly be correct, and I thought I must've done something wrong when configuring my macro. But it turns out that this is just a beautiful case of symmetry