https://github.com/asterite/adventofcode2015
Solutions to http://adventofcode.com/ in Crystal
https://github.com/asterite/adventofcode2015
Last synced: about 1 year ago
JSON representation
Solutions to http://adventofcode.com/ in Crystal
- Host: GitHub
- URL: https://github.com/asterite/adventofcode2015
- Owner: asterite
- Created: 2015-12-02T12:25:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-15T22:31:20.000Z (about 10 years ago)
- Last Synced: 2025-02-05T11:49:05.318Z (over 1 year ago)
- Language: Crystal
- Size: 65.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# adventofcode
Solutions to http://adventofcode.com/ in Crystal
## The way code is written
Code is written with readability in mind, not maximum efficiency. However,
it can be made more efficient, either in terms of memory or running time.
For example, instead of doing `File.read(...)` one can open the file and
read line by line, even using an iterator in some cases:
`File.open(...).each_line.count { ... }`.
## Running
Simply do, for example, `crystal 1/1.1.cr`, `crystal 2/2.1.cr`, etc.