Coder Social home page Coder Social logo

advent-of-code-2018's Introduction

Advent of code 2018

Made with Xcode 10.1 and Swift 4.2

My goal

Trying to solve each puzzle each day. I hope I'll have enough time and motivation to do so.

My own rules

The puzzle will be solved in Swift ; but not in playground like last year (that was a mistake).

No cheating. Many other person do the puzzle. I'll have to come up with my own solution ... or skipping a day.

Some code may be reused from one day to another.

Not all special cases will be treated by the code.

Some attention will be ported to performance consideration, let try to make that less than 5 seconds per day!

Puzzle solutions so far

Day Computing time* Part 1 Part 2
1 0,028s 505 72330
2 0,005s 7776 wlkigsqyfecjqqmnxaktdrhbz
3 0,167s 120408 1276
4 0,010s 11788 36896
5 0,143s 10598 5312
6 0,036s 3260 42535
7 0,004s BHRTWCYSELPUVZAOIJKGMFQDXN 959
8 0.035s 38780 18232
9 3,930s 384205 3066307353
10 0,104s AHFGRKEE 10243
11 1,879s 21,93 231,108,14
12 0,029s 3337 4300000000349
13 0,030s 124,90 145,88
14 3,053s 6910849249 20330673
15 3,274s 206720 37992
16 0,043s 640 472
17 0,036s 39367 33061   
18 2,170s 456225 190164
19 0,169s 2106 23021280
20 6,804s 3966 8173
21 9min 16s 12446070 13928239
22 4,119s 6256 973
23 0,026s 219 -
24 TBA 26868 -

* : Best elapsed time of the complete solution for my MacBook Pro 13in mid 2013 in "Release" mode

advent-of-code-2018's People

Contributors

dean151 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.