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

benash/ksc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-knapsack

Solution for Atomic's challenge

Usage

~/git/clojure-knapsack » lein test

lein test clojure-knapsack.core-test

Ran 8 tests containing 8 assertions.
0 failures, 0 errors.

~/git/clojure-knapsack » lein repl
nREPL server started on port 41698
user=> (use 'clojure-knapsack.core)
nil
user=> (print-result (solve "resources/atomic-ex.txt"))
packed dolls:
name weight value
sally 4 50
eddie 7 20
grumpy 22 80
dusty 43 75
grumpkin 42 70
marc 11 70
randal 27 60
puppy 15 60
dorothy 50 160
candice 153 200
anthony 13 35
luke 9 150
nil
user=> 

License

Copyright © 2013 FIXME

Distributed under the Eclipse Public License, the same as Clojure.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published