In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2025 Day 2 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

Discussion thread for day 2 of the Advent of Code - https://adventofcode.com/2025/day/2

50 REPLIES 50
Qiu
21 - Polaris
21 - Polaris

Did Regex and non-RegEx two versions for part2.

Spoiler
AoC 2025 Day 02.png
iracine
7 - Meteor

Getting back on track. 

Spoiler
Capture d’écran 2025-12-03 à 12.14.14 AM.png
Kanishkas5301
8 - Asteroid

Definitely not the best solution but it worked. Sneaking around looking for more elegant solutions here

Spoiler
Kanishkas5301_0-1764743236480.png

 

 

CoG
14 - Magnetar

RegEx for the win!

 

 

Spoiler
Screenshot.png
Generate all intermediate numbers and filter out relevant pattern. Here is the RegEx involved:
REGEX_Match(ToString([RowCount]),"^(.+)\1$")

The trick is to know that you can create internal references within RegEx. What is included above is for Part 1, Part 2 can be solved by adding a single character:REGEX_Match(ToString([RowCount]),"^(.+)\1+$") to look for multiple copies of numbers.

Happy Solving!

 

 

 

caltang
17 - Castor
17 - Castor

Day 2!

 

Spoiler
image.png
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
M_Enomoto
6 - Meteoroid

It's a brute-force solution, but if it works, it works!

Spoiler

 

M_Enomoto_0-1764769389754.png

M_Enomoto_1-1764769453624.png

 

 

 

Malvim
11 - Bolide

Again for 'more tools used'... RegEx feels so pretty now.

 

Spoiler
Malvim_0-1764779075503.pngMalvim_1-1764779100312.png

 

 

EKasminsky
9 - Comet

EKasminsky_0-1764781445538.png
Lots of Regex and filters!

 

JoshuaB
Alteryx
Alteryx

A little sloppy for part 1 then realized how easy this was for Regex. 

 

Spoiler
      JoshuaB_0-1764791522981.png

 

Joshua Burkhow | Chief Evangelist @ Alteryx | Follow me on LinkedIn and Twitter
Jeff_Neklason
8 - Asteroid
8 - Asteroid

This one had a certain jingle to it...

Day 2 Screenshot.jpg

Are we having fun yet?
Labels
Top Solution Authors