{"id":22868290,"url":"https://github.com/markfchavez/flower_shop","last_synced_at":"2025-03-31T10:50:11.126Z","repository":{"id":68182923,"uuid":"116926480","full_name":"MarkFChavez/flower_shop","owner":"MarkFChavez","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-12T03:18:21.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T15:53:11.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarkFChavez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-10T07:57:15.000Z","updated_at":"2018-01-10T07:57:31.000Z","dependencies_parsed_at":"2023-02-26T18:45:57.739Z","dependency_job_id":null,"html_url":"https://github.com/MarkFChavez/flower_shop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fflower_shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fflower_shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fflower_shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fflower_shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarkFChavez","download_url":"https://codeload.github.com/MarkFChavez/flower_shop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458022,"owners_count":20780675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T12:32:44.786Z","updated_at":"2025-03-31T10:50:11.100Z","avatar_url":"https://github.com/MarkFChavez.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flower Shop Problem\n\n### What Did I Use?\n- Language: `Ruby` (2.4.1)\n- Testing Framework: `RSpec` (3.7.0)\n\n### Usage\n```ruby\nruby start.rb\n```\n\n### Contributing\nMake sure all specs pass before pushing a pull request.\n```ruby\nrspec spec\n```\n\n### How It Works\n![](flower_shop.png)\n\n### Context\nA flower shop used to base the price of their flowers on an item by item cost. So if a customer ordered 10 roses then they would be charged 10x the cost of single rose. The flower shop has decided to start selling their flowers in bundles and charging the customer on a per bundle basis. So if the shop sold roses in bundles of 5 and 10 and a customer ordered 15 they would get a bundle of 10 and a bundle of 5.\n\n### Task\nGiven a customer order you are required to determine the cost and bundle breakdown for each product. To save on shipping space each order should contain the minimal number of bundles.\n\n### Input\nEach order has a series of lines with each line containing the number of items followed by the product code\n\n\n#### An example input\n```ruby\n10 R12\n15 L09\n13 T58\n```\n\n### Output\nA successfully passing test(s) that demonstrates the following output: (The format of the output is not important)\n\n```ruby\n10 R12 $12.99\n  1 x 10 $12.99\n\n15 L09 $41.90\n  1 x 9 $24.95\n  1 x 6 $16.95 13\n\nT58 $25.85\n  2 x 5 $9.95\n  1 x 3 $5.95\n```\n\n# Credits\n\nThanks to [leetcode](https://github.com/haoel/leetcode) for providing the solution for my\ncombination sum problem.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkfchavez%2Fflower_shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkfchavez%2Fflower_shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkfchavez%2Fflower_shop/lists"}