/project_euler

Libraries used as part of learning languages and toolkits.

Primary LanguageScala

Project Euler Libraries

One of the ways that I've used to learn programming languages is to solve a set of problems from Project Euler using that language. I find that even if the language is not well suited to PE-style problems, it is a good opportunity to try and think in the language. I don't work my way through the entire set of problems that I've solved so far, but enough that I start to get a feel for the language and its idioms. Since this is largely test code, I'll often play with patterns or ideas that don't necessarily make sense just as a way of feeling out different approaches.

After doing this a few times and just keeping my libraries locally, I decided I'd upload them for Scala so that I could use them as an easy reference when asking questions.

I am not going to upload the final solutions, but it should be noted that there are still going to be spoilers for how I've solved some of the problems.

Scala

There were several features of the JScience LargeInteger class that I wanted to take advantage of, so the scala libraries include a wrapper to let me use them more easily inside of Scala.

Legal

Copyright (c) Year(s) 2012, David H. Clements

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.