{"id":19071680,"url":"https://github.com/omar-muhamad/min-max-sum","last_synced_at":"2026-02-28T15:32:22.065Z","repository":{"id":130793441,"uuid":"447633497","full_name":"Omar-Muhamad/min-max-sum","owner":"Omar-Muhamad","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-13T14:39:42.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T04:16:11.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Omar-Muhamad.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-01-13T14:38:38.000Z","updated_at":"2022-03-29T14:32:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9adb6ab9-3b07-4aa5-8165-5631ad7d47cf","html_url":"https://github.com/Omar-Muhamad/min-max-sum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Omar-Muhamad/min-max-sum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar-Muhamad%2Fmin-max-sum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar-Muhamad%2Fmin-max-sum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar-Muhamad%2Fmin-max-sum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar-Muhamad%2Fmin-max-sum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Omar-Muhamad","download_url":"https://codeload.github.com/Omar-Muhamad/min-max-sum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar-Muhamad%2Fmin-max-sum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29940284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2024-11-09T01:30:04.286Z","updated_at":"2026-02-28T15:32:22.046Z","avatar_url":"https://github.com/Omar-Muhamad.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# min-max-sum\r\n\r\n## Solution\r\n\r\n`function miniMaxSum(arr) {\r\n    arr.sort();\r\n    let sum = 0;\r\n    for (let i=0; i\u003carr.length; i++){\r\n       sum = sum + arr[i]\r\n    }\r\n    const biggestNum = arr.pop();\r\n    const smallestNum = arr.shift();\r\n    const minSum = sum - biggestNum;\r\n    const maxSum = sum - smallestNum;\r\n    console.log(minSum, maxSum);\r\n    return minSum, maxSum;\r\n}`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomar-muhamad%2Fmin-max-sum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomar-muhamad%2Fmin-max-sum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomar-muhamad%2Fmin-max-sum/lists"}