/advent-of-code-2020

My personal solutions of advent of code 2020, in Jupyter Notebooks of Python3 and Rust.

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

advent-of-code-2020

My personal journey of interesting annual programming puzzle of Advent of Code 2020. The solutions are in 2 programming languages, Python 3.7 in Jupyter notebooks and Rust. Since I am still learning Rust, these solutions in Rust mainly focused on grasping language basics instead of using convinient crates as much as they can. So if you are looking for much more sotificated solutions of Rust, maybe Here with Amos will be a better place.

Any suggestions or advices on codes, algorithms, data structures, etc. are mostly welcomed. Especially on Rust solution.

一年一度的程序猿圣诞节庆典,Advent of Code 2020 从12月1日开始了,本人从12月5日加入,本只是打算利用这个机会继续加深自己对Rust的认识,后来一想,干脆开个仓库吧,顺便用Jupyter notebooks记录一下解题的思路吧,于是就有了这个以Python 3.7和Rust两种方式解答AOC2020的项目。因为本人对Rust的掌握还不能算是熟练,因此Rust的解答着重在基本语法、Rust基本概念和实现上,并没有使用太多的第三方库来简化代码和达到更加健壮的目的。如果你需要的是更加优雅,更加Rustian的解答,你可以看Amos的这个优秀的博客,更加适合中级以上Rust程序员。

欢迎指正,代码,算法,数据结构等等的任何问题。谢谢!

目录:

Day Python in notebook Rust
Day 1 Finished Finished
Day 2 Finished Finished
Day 3 Finished Finished
Day 4 Finished Finished
Day 5 Finished Finished
Day 6 Finished Finished
Day 7 Finished Finished
Day 8 Finished Finished
Day 9 Finished Finished
Day 10 Finished Finished
Day 11 Finished Finished
Day 12 Finished Finished
Day 13 Finished Finished
Day 14 Finished Finished
Day 15 Finished Finished
Day 16 Finished Finished
Day 17 Finished Finished
Day 18 Finished Finished
Day 19 Finished Finished
Day 20 Finished Finished
Day 21 Finished Finished
Day 22 Finished Finished
Day 23 Finished Solution 1: memory safe but leakage 内存安全但是有泄露
Solution 2: no memory leakage and faster but maybe not memory safe 使用unsafe后内存无泄漏且更快但可能内存不安全
Day 24 Finished Finished
Day 25 Finished Finished