{"id":16074593,"url":"https://github.com/skyv26/sales-by-match","last_synced_at":"2025-03-15T11:43:40.707Z","repository":{"id":103821317,"uuid":"533217510","full_name":"skyv26/sales-by-match","owner":"skyv26","description":"Problem Solving Exercise","archived":false,"fork":false,"pushed_at":"2022-09-06T07:58:36.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T05:05:11.396Z","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/skyv26.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-06T07:50:09.000Z","updated_at":"2023-02-13T09:43:37.000Z","dependencies_parsed_at":"2023-03-13T15:05:07.430Z","dependency_job_id":null,"html_url":"https://github.com/skyv26/sales-by-match","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"a31367d410fba29c5ca79006eac0b1c267d7d78a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2Fsales-by-match","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2Fsales-by-match/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2Fsales-by-match/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyv26%2Fsales-by-match/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyv26","download_url":"https://codeload.github.com/skyv26/sales-by-match/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725540,"owners_count":20337667,"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-09T09:00:44.304Z","updated_at":"2025-03-15T11:43:40.690Z","avatar_url":"https://github.com/skyv26.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are.\n\n\nThere is one pair of color  and one of color . There are three odd socks left, one of each color. The number of pairs is .\n\nFunction Description\n\nComplete the sockMerchant function in the editor below.\n\nsockMerchant has the following parameter(s):\n\nint n: the number of socks in the pile\nint ar[n]: the colors of each sock\nReturns\n\nint: the number of pairs\nInput Format\n\nThe first line contains an integer , the number of socks represented in .\nThe second line contains  space-separated integers, , the colors of the socks in the pile.\n\nConstraints\n\n where \nSample Input\n\nn = 9\nar = [10, 20, 20, 10, 10, 30, 50, 10, 20]\n\nSample Output\n3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyv26%2Fsales-by-match","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyv26%2Fsales-by-match","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyv26%2Fsales-by-match/lists"}