{"id":22868241,"url":"https://github.com/markfchavez/pivot_ruby","last_synced_at":"2025-03-31T10:50:03.717Z","repository":{"id":68182960,"uuid":"167974494","full_name":"MarkFChavez/pivot_ruby","owner":"MarkFChavez","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-28T14:19:55.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T15:53:13.588Z","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":"2019-01-28T14:19:35.000Z","updated_at":"2019-01-28T14:19:56.000Z","dependencies_parsed_at":"2023-02-26T19:00:49.901Z","dependency_job_id":null,"html_url":"https://github.com/MarkFChavez/pivot_ruby","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%2Fpivot_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fpivot_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fpivot_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarkFChavez%2Fpivot_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarkFChavez","download_url":"https://codeload.github.com/MarkFChavez/pivot_ruby/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:28.167Z","updated_at":"2025-03-31T10:50:03.676Z","avatar_url":"https://github.com/MarkFChavez.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Problem\nWrite a method that returns the \"pivot\" index of a list of integers. We \ndefine the pivot index as the index where the sum of the numbers on the \nleft is equal to the sum of the numbers on the right. Given [1, 4, 6, 3, 2], \nthe method should return 2, since the sum of the numbers to the left of index \n2 is equal to the sum of numbers to the right of index 2 (1 + 4 = 3 + 2). \nIf no such index exists, it should return -1. If there are multiple \npivots, you can return the left-most pivot.\n\nYou can write the method in any language. Make sure that the method:\n\n   • runs successfully\n\n   • handles all edge cases\n\n   • is as efficient as you can make it!\n\nA successful answer will fulfill the above criteria.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkfchavez%2Fpivot_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkfchavez%2Fpivot_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkfchavez%2Fpivot_ruby/lists"}