Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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 #470: Build the Tallest Tower

JBevan89
8 - Asteroid

Firstly, my version of Alteryx Designer (2024.1 non-admin) does not let me save as a packages (yxzp).  So I attach the file and macro separately.  Any Ideas why it will not let me save as a package?

 

Spoiler
C470_JB 1.png

 

Spoiler
C470_JB.png



When I used AI to ask how to set the number of iterations to 100 for an iterative macro, it said about using a 'control parameter' tool.  But from further digging and also realising, this made it a 'batch' macro.  So from further looking into, I realised that with an iterative macro you can set the number of iterations from the interface designer as per my image above.  However, i find this quite interesting, because given the final output is 12,000 records plus, I sense that it has iterated more than 100 times.  I do not think it effects the result.  Any thoughts?

Noah-Waite
6 - Meteoroid

Added in some logic to identify the blocks included within the tower: 

Spoiler

TowerResults.JPG

TowerMacro.JPG

 

 

 

alineruizcampos
8 - Asteroid
Spoiler
Screenshot 2025-04-02 120625.pngScreenshot 2025-04-02 120641.png
martinson
11 - Bolide

Max height 42 with blocks PEGJKNR

Cheers,
martinson

LinkedIN

Bulien
thomasduong
8 - Asteroid

Here is my solution to Challenge #470

Spoiler
Screenshot 2025-04-02 152054.pngScreenshot 2025-04-02 152139.png
alexnajm
18 - Pollux
18 - Pollux

Still don't like iterative macros 😬

ntakeda
12 - Quasar

Fun challenge!

Spoiler
2025-04-03_09h13_29.png2025-04-03_09h13_34.png

  

DaisukeTsuchiya
14 - Magnetar
14 - Magnetar
Spoiler

I wonder why 100 itteration is required. Itteration can be finished in 6 times.
スクリーンショット 2025-04-03 155418.pngスクリーンショット 2025-04-03 155442.png
RWvanLeeuwen
11 - Bolide

I have found a maximum height of 73 with NNNEEEEEEEP (top to bottom block order)
@AYXAcademy-> would you kindly fact check my 73 as highest tower?

 

Here's my take

Spoiler
have I been p*wned or did I find a solution with mentioning?have I been p*wned or did I find a solution with mentioning?the hard part was  figuring out that I should add each new block underneath, because this makes the cumulative weight much much easier to calculatethe hard part was figuring out that I should add each new block underneath, because this makes the cumulative weight much much easier to calculate

 

 

Ryan-Yeung
7 - Meteor
Spoiler
Macro.pngMain.png
=========OUTPUT=========

max.pngmaxnodupe.png

 

Regex to match duplicate blocks (repeated character anywhere in string) ".*(.+)(.*\1).*"

 

 

@martinson You haven't accounted for the new load capacity of the blocks you're adding (you're only updating the load capacity of the block at the bottom of your towers), eg. in your "PEGJKNR" example, block G has a load capacity of only 1, so the J block is all you can add from the PEG state as the G block cannot load any more than that

 

@RWvanLeeuwen I think the provided solution assumes using each block only once (which I also didn't account for initially as it's not technically stated as such in the question lol). In the case of you can use each block as many times as you wish I get the same result (PEEEEEEENNN w/ Height 73, bottom to top)