Show HN: Advent of Code with GPT (github.com)
I will be attempting this everyday, and will share here if people are interested. The first day GPT solved the puzzle correctly with the first prompt I tried.
for Part 1, I used the prompt:
"Write a program that takes a string input containing line separated integers. The program should sum the integers in each group. Groups are separated by two newlines. The program should then output the sum of the group with the maximum sum."
for Part 2, I then used the prompt:
"Modify the previous function to instead return the sum of the sum of the top three groups."
0 comments
[ 3.6 ms ] story [ 14.2 ms ] threadNo comments yet.