{"id":16079031,"url":"https://github.com/developer3027/averageshippingweights","last_synced_at":"2025-12-02T09:30:15.691Z","repository":{"id":119585937,"uuid":"542077070","full_name":"Developer3027/AverageShippingWeights","owner":"Developer3027","description":"This is a javascript function that takes in an array of package weights and splits them into two boxes with weights that are most comparable and under 50 lbs.","archived":false,"fork":false,"pushed_at":"2022-09-27T12:56:15.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T03:43:54.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Developer3027.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":"2022-09-27T12:37:29.000Z","updated_at":"2022-09-27T12:42:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"4038984d-5cb2-4adb-9e32-b91686cac975","html_url":"https://github.com/Developer3027/AverageShippingWeights","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/Developer3027%2FAverageShippingWeights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer3027%2FAverageShippingWeights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer3027%2FAverageShippingWeights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer3027%2FAverageShippingWeights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Developer3027","download_url":"https://codeload.github.com/Developer3027/AverageShippingWeights/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239650831,"owners_count":19674816,"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-10-09T10:40:19.072Z","updated_at":"2025-12-02T09:30:15.628Z","avatar_url":"https://github.com/Developer3027.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AverageShippingWeights\nThis is a javascript function that takes in an array of package weights and splits them into two boxes with weights that are most comparable and under 50 lbs.\n\nAmazon wants to ship package better. They will give the number of packages, along with the package weights in an array. The first number in the array is the number of packages and all the other following numbers are the individual package weights.\n\nCreate a function that breaks the list into two shipping boxes where box A will be heaviest but comparable to box B.\n\nexample: given the array [6, 5, 3, 2, 4, 1, 2] - there are 6 packages to ship. Box A could be [5, 4] at 9lb or [5, 3] at 8 lbs and box B [2,1,2,3] at 8 lb or [2,1,2,4] at 9lb but in this case box A [5,4] is the only option because box A [5,3] is lighter than box B [2,1,2,4]\n\nYou may notice the funny syntax of the comments. I use the \"better comments\" extension for vsCode. The highlight color I use is:\n  {\n    \"tag\": \"^\",\n    \"color\": \"#FFFF00\",\n    \"strikethrough\": false,\n    \"underline\": false,\n    \"backgroundColor\": \"transparent\",\n    \"bold\": false,\n    \"italic\": true\n  },\n  {\n    \"tag\": \"\u003e\",\n    \"color\": \"#C68BFF\",\n    \"strikethrough\": false,\n    \"underline\": false,\n    \"backgroundColor\": \"transparent\",\n    \"bold\": false,\n    \"italic\": false\n  },\n  {\n    \"tag\": \"@\",\n    \"color\": \"#FF8C00\",\n    \"strikethrough\": false,\n    \"underline\": false,\n    \"backgroundColor\": \"transparent\",\n    \"bold\": false,\n    \"italic\": false\n  }\nThese objects are with the settings json of vsCode if you have the extension\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper3027%2Faverageshippingweights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper3027%2Faverageshippingweights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper3027%2Faverageshippingweights/lists"}