Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
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 #239: SEND + MORE = MONEY

AryCardoso
Asteroide

Done!

paulfound
Bólide
Saqueador
PaulFound_0-1605291374544.png

1023 to 9876 Brute force

Very hard coded and brute forced, but I get 42 options. 

 

Jean-Balteryx
16 - Nebula
16 - Nebula

Here is my solution !

peter_gb
Bola de fogo

Well this was fun, but I took way too much time to figure out generating the combinations so the final part isn't as dynamic as I'd like. 
Manually reconstructed the sentence/calc rather than having the input be dynamic to a different puzzle. Spent a good 2 hours on it though so time to be content with a working solution and move on!  Still quite brute force but runs in <15 mins.

Saqueador
challenge_239_pgb.png

PhilipMannering
16 - Nebula
16 - Nebula

The itertools to the rescue again. See my predominately Python based solution below.

 

Saqueador
WorkflowWorkflow

 

Saqueador
NotebookNotebook
A2H
Bólide

An efficient solution, exploring all possible combination with the right filter at the right time !

 

Saqueador
Capture d’écran, le 2020-12-14 à 20.55.19.png

 

 

hanykowska
Bólide

yet another brute force approach 😬

 

Saqueador
went with generate rows instead of append

hanykowska_0-1608576340629.png

 

JosephSerpis
17 - Castor
17 - Castor

Challenge Completed

 

Saqueador
Weekly_Challenge_239.JPG
KilianL
Alteryx Alumni (Retired)

Tough challenge! Took me some time to figure out how to streamline the brute force approach.

 

Saqueador

Method 1: Brute Force - go through all combinations until match

Method 2: using Brute Force with conditions

We have two conditions:
1. unique values
2. the equation has to fit

The second condition can be broken down to:
1. the last digits follow: mod(D+E,10)=Y
2. the following digits follow e.g. mod(N+R+carryOver,10)=E

Repeating these conditions for each digit position limits the combinations to check by a huge margin.

239 - send+more=money - Kilian.png

jamielaird
Magnetar

Here's my solution, complete with a slightly embarassing number of Append tools...

Saqueador
jamielaird_0-1611101639232.png