Featured
- Get link
- X
- Other Apps
Advent of Code 2020 | Day 1 | for() loop
# # # ## ## # ### ### ### ### ## # # # ### # # ### ## ### ### # # ### ### ### # # # # # # # # ## # # ## ### # # # # ## # # # # # ### # # # # # ## ### # # ### # # # # # # ### # # # ### # ### # # ## ### # # ### ### ### # # # # # # # # ### # # # # ## ## ### ### ### ### ## ### ###
Hey reader! Have you been training programming whole year or even more or just coded your first script yesterday and you...maybe love math? Then try this coding challenge!
I and my friend seen this challenge and thought it will be an easy excercise for our Java coding skills [of course you can solve it in any other language like Python, Javascript or even Assembly language (haha)] and also an opportunity for having a nice time.
The first day doesn't show on leaderboards so this "writeup" cannot be considered as a cheat, but spoiler for sure. So lets get started!
Some elves in accounting want you to fix expense report, but something has fugged up...
Long story short: we have to find 2 numbers that sum current year - 2020 and submit their multiplication as an answer. Looks pretty easy to me.
First thing that came into my mind was putting these numbers in array, you can keep these numbers in memory or either paste them in a text file and then split them or loop through the lines.
- Get link
- X
- Other Apps
Popular Posts
Advent of Code 2020 | Day 4 | List<String>.contains()
- Get link
- X
- Other Apps
Comments
Post a Comment