coinsort.rb 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/greedy.rb +3 -0
  2. metadata +3 -4
@@ -29,5 +29,8 @@ def sort_us_coins(total, large_coins=false)
29
29
  us.sort_coins
30
30
  end
31
31
  end
32
+ coins = Greedy.new("ooplas", 304, 28, 17, 5)
33
+ coins.sort_coins
34
+ sort_us_coins(543, large_coins=true)
32
35
 
33
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinsort.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,8 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-05-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: ! 'Coin Sorting using the greedy algorithim, documentation coming soon,
15
- for now just use the source code: https://gist.github.com/2576516'
14
+ description: Coin Sorting using the greedy algorithim.
16
15
  email: slmnwise@gmail.com
17
16
  executables: []
18
17
  extensions: []
@@ -39,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
38
  version: '0'
40
39
  requirements: []
41
40
  rubyforge_project:
42
- rubygems_version: 1.8.21
41
+ rubygems_version: 1.8.24
43
42
  signing_key:
44
43
  specification_version: 3
45
44
  summary: Coin Sort