{"id":28509166,"url":"https://github.com/atomicobject/survival-pack","last_synced_at":"2026-01-31T17:03:30.013Z","repository":{"id":15893362,"uuid":"18634681","full_name":"atomicobject/survival-pack","owner":"atomicobject","description":"Surviving a Zombie Apocolypse","archived":false,"fork":false,"pushed_at":"2014-04-10T15:47:43.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-07-02T23:35:55.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/atomicobject.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}},"created_at":"2014-04-10T11:56:13.000Z","updated_at":"2024-11-28T16:29:06.000Z","dependencies_parsed_at":"2022-09-24T05:20:50.960Z","dependency_job_id":null,"html_url":"https://github.com/atomicobject/survival-pack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atomicobject/survival-pack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicobject%2Fsurvival-pack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicobject%2Fsurvival-pack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicobject%2Fsurvival-pack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicobject%2Fsurvival-pack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomicobject","download_url":"https://codeload.github.com/atomicobject/survival-pack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicobject%2Fsurvival-pack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-06-08T22:07:39.391Z","updated_at":"2026-01-31T17:03:29.996Z","avatar_url":"https://github.com/atomicobject.png","language":null,"readme":"You are a survior of zombie apocalypse. You are moving from town-to-town collecting the most valuable items necessary for survival. You have backpack that can only hold a certain amount of weight and it is your job is to choose the best set of items based on their weight and value.\n\n**Write a API in [Grape](https://github.com/intridea/grape) with an API endpoint called** \u003ccode\u003e/v1/survival-pack\u003c/code\u003e.\n\nThat API endpoint will be given the following data via a \u003ccode\u003ePOST\u003c/code\u003e request:\n\n* a set of survival items with a name and unique weight and value combination\n* an overall weight restriction\n* The endpoint can accept either a text file _OR_ a JSON data structure\n\nIt will produce an optimal set of survival items which:\n\n* are within the total weight restriction\n* maximize your chance of survival\n* The response will always be in JSON\n\nRequirements:\n\n* use bundler - https://github.com/bundler/bundler\n* include multiple high-level test cases to validate your solution (like the one included below)\n* provide instructions in a README for submitting a survival pack to the API\n* deploy it to [Heroku](https://id.heroku.com/login) or similar service\n* The code must be readily available on GitHub or similar service\n\nInput:\n\n    max weight: 400\n\n    available survival items:\n\n    name    weight value\n    ammo        9   150\n    tuna       13    35\n    water     153   200\n    spam       50   160\n    knife      15    60\n    hammer     68    45\n    rope       27    60\n    saw        39    40\n    towel      23    30\n    rock       52    10\n    seed       11    70\n    blanket    32    30\n    skewer     24    15\n    dull-sword 48    10\n    oil        73    40\n    peanuts    42    70\n    almonds    43    75\n    wire       22    80\n    popcorn     7    20\n    rabbit     18    12\n    beans       4    50\n    laptop     30    10\n\nResult:\n\n    best value:\n\n    name    weight value\n    beans       4    50\n    popcorn     7    20\n    wire       22    80\n    almonds    43    75\n    peanuts    42    70\n    seed       11    70\n    rope       27    60\n    knife      15    60\n    spam       50   160\n    water     153   200\n    tuna       13    35\n    ammo        9   150\n\nHint:\n\n* read this - http://en.wikipedia.org/wiki/Knapsack_problem\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicobject%2Fsurvival-pack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomicobject%2Fsurvival-pack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicobject%2Fsurvival-pack/lists"}