Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Northburns/wundernut-shortest-edition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wundernut 8 - Shortest Edition

My solution to Wundernut vol 8: Shortest Edition.

Details and how to run

Solution written in Kotlin, built with Gradle.

Requirements:

  • Linux
  • Java 8 (I used openjdk 1.8.0_151)

Run with this command, solution is then printed and saved to file nut.txt:

./gradlew run
  • gradlew is the Gradle Wrapper, it'll download the desired Gradle version (to user's home) if it is not installed already.
  • The build script downloads the needed resources from the Wundernut 8's GitHub repo.
    • It only downloads the linux validator, hence the requiremnt

Solution

See Solution.kt for the beef.

Result

This is the result of the validator.

All words found:    [✓]
Lines max 80 chars: [✓]
21245 lines

My final result is 21245 rows. The 80 character line length seems to have pushed the line count up 😄

Update: The winning solution squeezed the book down to 21162 rows, cool!

About

Solving a puzzle thing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages