{"id":30838886,"url":"https://github.com/lucas4tech/ruby-stock-picker-example","last_synced_at":"2025-09-06T18:13:25.255Z","repository":{"id":186919212,"uuid":"608336473","full_name":"lucas4tech/ruby-stock-picker-example","owner":"lucas4tech","description":"Building an algorithm to see the best day to buy and the best day to sell using Ruby  🎯","archived":false,"fork":false,"pushed_at":"2023-03-01T20:17:48.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T05:24:36.022Z","etag":null,"topics":["challenge","design-patterns","hackathon","logic-programming","ruby"],"latest_commit_sha":null,"homepage":"","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/lucas4tech.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}},"created_at":"2023-03-01T20:07:26.000Z","updated_at":"2025-05-25T23:16:31.000Z","dependencies_parsed_at":"2023-08-08T08:41:31.421Z","dependency_job_id":"a75ce6cf-aec1-43c2-ab5f-4ef386c9a823","html_url":"https://github.com/lucas4tech/ruby-stock-picker-example","commit_stats":null,"previous_names":["silva4dev/ruby-stock-picker","lucas4tech/ruby-stock-picker-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucas4tech/ruby-stock-picker-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-stock-picker-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-stock-picker-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-stock-picker-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-stock-picker-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucas4tech","download_url":"https://codeload.github.com/lucas4tech/ruby-stock-picker-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucas4tech%2Fruby-stock-picker-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273941528,"owners_count":25195105,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["challenge","design-patterns","hackathon","logic-programming","ruby"],"created_at":"2025-09-06T18:13:19.752Z","updated_at":"2025-09-06T18:13:25.243Z","avatar_url":"https://github.com/lucas4tech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Picker\n\nImplement a method #stock_picker that takes in an array of stock prices, one for each hypothetical day. It should return a pair of days representing the best day to buy and the best day to sell. Days start at 0.\n\n```\n stock_picker([17,3,6,9,15,8,6,1,10])\n =\u003e [1,4]\n```\n#### Quick Tips:\n* You need to buy before you can sell\n* Pay attention to edge cases like when the lowest day is the last day or the highest day is the first day.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas4tech%2Fruby-stock-picker-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucas4tech%2Fruby-stock-picker-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas4tech%2Fruby-stock-picker-example/lists"}