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 #458: Masking Alternating Characters

JeffF
Alteryx
Alteryx
Spoiler
Challenge458_JeffF.png
TurboToad
11 - Bolide

The description of the challenge didn't seem to match up with the expected output...

 

Here's my take on the solution, 1 tool 😁.

 

Spoiler
This closely matches the output example but the 2nd string results are slightly different, regex_replace([Data], "\w(\w)?", '*$1'):
Data
*L*X*N*E* *B*N*J*
*L*E*Y* *E*I*N*R
*N*L*T*C *P*

This seems closer to the ask, regex_replace([Data], "(\w)\w?", '$1*')
Data
A*E*A*D*R* A*I*A*M*
A*T*R*X* D*S*G*E*
A*A*Y*I* A*P*

458.PNG

 

 

BSilverblatt
8 - Asteroid

Solution attached:

JacobAnugrah
5 - Atom

Hello Alex Najm,

 

I was able to complete the challenge to meet the requirements mentioned, however there seems to be a difference in the output file saved on the challenge.

 

It reflects as: 

*L*X*N*E* *B*N*J*
A*T*R*X *E*I*N*R
*N*L*T*C *P*

 

INSTEAD OF:

 

*L*X*N*E* *B*N*J*
*L*E*Y* *E*I*N*R
*N*L*T*C *P*

Sebastian_Chaieb2
11 - Bolide
11 - Bolide

My Solution attached

 

Spoiler
458.png

Alice_Bataillion
5 - Atom
Spoiler
458.png
Not sure it's the most efficient way, but it works!
JBevan89
8 - Asteroid

please see my solution

 

bpeveto
5 - Atom
 

Fun with RegEx.

a640687
8 - Asteroid
Spoiler
Capture.PNG

My asterisks for some of the words aren't exactly the same as the original solution, but it does fulfil the challenge based on the criteria listed above, including not taking out spaces, so I accept it.  Looking at the challenge creators workflow, there isn't a rhyme to why one character is masked vs another, since sometimes it counts the space and sometimes it doesn't, so I think what I have done is fine.

Powerhouse_21
10 - Fireball
Spoiler
458.png