The 'Advent of Code 2020' Event Begins (adventofcode.com) 26
"Need a vacation from 2020? Why not go on an adventure and learn programming at the same time?" asks developer Eric Wastl on Twitter, announcing this year's edition of the Advent of Code.
From the site: Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.
You don't need a computer science background to participate - just a little programming knowledge and some problem solving skills will get you pretty far. Nor do you need a fancy computer; every problem has a solution that completes in at most 15 seconds on ten-year-old hardware.
From the site: Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.
You don't need a computer science background to participate - just a little programming knowledge and some problem solving skills will get you pretty far. Nor do you need a fancy computer; every problem has a solution that completes in at most 15 seconds on ten-year-old hardware.
Looks like a lot of fun, even in Pascal! (Score:2)
That was an interesting first challenge... I did it in Pascal... but the SQL entry seems to be the most oddball so far.
Re: (Score:2)
Re: (Score:2)
GPP didn't say anything about the question being in SQL. Everyone saw the same problem: an SQL solution (which I'm sure will now be torn to pieces) would be (code and tt tags not supported, apologies for the proportional font):
CREATE TEMP TABLE Entries (
Val
);
INSERT INTO Entries VALUES (1721), (979), (366), (299), (675), (1456);
SELECT x.Val * y.Val
FROM Entries x INNER JOIN Entries y ON x.Val + y.Val = 2020 AND x.Val <= y.Val;
Try it online [tio.run] with SQLite.
Re: (Score:2)
Re: (Score:2)
I'm guessing he means somebody solved it using SQL.
I did it in Javascript, too.
In an HTML page, just for a laugh. It's a good chance to practice other languages.
Re:Looks like a lot of fun, even in Pascal! (Score:4, Funny)
I solved it with deep learning using Python, Tensorflow, and a cloud-based TPU instance. I generated a few million random pairs and trained the network using gradient descent back-propagation until I got a 95% positive on each input pair with a sum of 2020.
Re: (Score:2)
Re: (Score:2)
They do seam least demanding that most services (checked each one) most websites when you use twiter, google, etc for authentication also have the ability to not only see everything public but also everything private and make changes. Take a look at this for example: https://api.twitter.com/oauth/... [twitter.com]
Like this:
posted by others (Like, un-Like, or reply to a Tweet, Retweet, etc
Re: (Score:2)
Re: (Score:3)
I plan to do these all in Fortran, as I did last year. Day 1 was easy.
Code sucks (Score:2)
Fun site (Score:2)
This is a fun site. The first problem was trivial, but the site is a great source for interview questions. Everyone has Googled FizzBuzz already, so throwing a curveball with a less popular toy problem might be a good idea.
Re: Fun site (Score:2)
Always fun! Last year's processor simulation was great for us old hardware nerds.
Haven't ever finished the whole series - the later puzzles get too time-consuming and my job doesn't stop. Still the first several days are great!
2 solutions (Score:2)
There were two solutions to part 2.
That's the only interesting thing about day 1.
How do I do this in no-code? (Score:2)
I can't find the solution widget to drag to the ship-it pane anywhere on the page? 2021 is the year of no-code right?