{"id":18879501,"url":"https://github.com/fforbeck/spreadsheet","last_synced_at":"2026-02-20T02:30:14.997Z","repository":{"id":144910257,"uuid":"107818729","full_name":"fforbeck/spreadsheet","owner":"fforbeck","description":"Spreasheet Programming​ ​ Challenge","archived":false,"fork":false,"pushed_at":"2017-10-23T21:21:46.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T03:12:30.614Z","etag":null,"topics":["functional-programming","java8","object-oriented-programming","programming-challenge"],"latest_commit_sha":null,"homepage":"","language":"Java","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/fforbeck.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":"2017-10-21T21:56:16.000Z","updated_at":"2017-10-22T00:55:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bc181e4-86b1-486b-86b0-bba86b5da064","html_url":"https://github.com/fforbeck/spreadsheet","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/fforbeck%2Fspreadsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fforbeck%2Fspreadsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fforbeck%2Fspreadsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fforbeck%2Fspreadsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fforbeck","download_url":"https://codeload.github.com/fforbeck/spreadsheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239841743,"owners_count":19705981,"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":["functional-programming","java8","object-oriented-programming","programming-challenge"],"created_at":"2024-11-08T06:36:52.459Z","updated_at":"2026-02-20T02:30:14.941Z","avatar_url":"https://github.com/fforbeck.png","language":"Java","readme":"# Programming​ ​ Challenge\n\nA​ ​ spreadsheet​ ​ consists​ ​ of​ ​ a ​ ​ two-dimensional​ ​ array​ ​ of​ ​ cells,​ ​ labeled​ ​ `A1`,​ ​ `A2`,​ ​ etc.​ ​ Rows​ ​ are\nidentified​ ​ using​ ​ letters,​ ​ columns​ ​ by​ ​ numbers.\nEach​ ​ cell​ ​ contains​ ​ either​ ​ a ​ ​ sign​ ​ integer​ ​ (its​ ​ value)​ ​ or​ ​ an​ ​ expression.​ ​ Expressions​ ​ contain​ ​ integers,\ncell​ ​ references,​ ​ and​ ​ the​ ​ operators​ ​ `+`,​ ​ `-`,​ ​ `*`,​ ​ `/`​ ​ with​ ​ the​ ​ usual​ ​ rules​ ​ of​ ​ evaluation​ ​ – ​ ​ note​ ​ that​ ​ the\ninput​ ​ is​ ​ RPN​ ​ and​ ​ should​ ​ be​ ​ evaluated​ ​ in​ ​ stack​ ​ order.\n\n\n## Description\n\nWrite​ ​ a ​ ​ program​ ​ in​ ​ vanilla​ ​ Java​ ​ 8 ​ ​ to​ ​ read​ ​ a ​ ​ spreadsheet​ ​ from​ ​ `stdin`,​ ​ evaluate​ ​ the​ ​ values​ ​ of​ ​ all​ ​ the\ncells,​ ​ and​ ​ write​ ​ the​ ​ output​ ​ to​ ​ `stdout`.​ ​ Your​ ​ program​ ​ should​ ​ detect​ ​ cyclic​ ​ dependencies​ ​ in​ ​ the​ ​ input data,​ \nreport​ ​ these​ ​ in​ ​ a ​ ​ sensible​ ​ manner,​ ​ and​ ​ exit​ ​ with​ ​ a ​ ​ non-zero​ ​ exit​ ​ code.\n\n\nThe​ ​ spreadsheet​ ​ input​ ​ is​ ​ defined​ ​ as​ ​ follows:\n\n - Line​ ​ 1 ​ ​ - ​ ​ the​ ​ width​ ​ `N`​ ​ of​ ​ the​ ​ spreadsheet\n - Line​ ​ 2 ​ ​ - ​ ​ the​ ​ height​ ​ `M`​ ​ of​ ​ the​ ​ spreadsheet\n - `N*M`​ ​ lines​ ​ each​ ​ containing​ ​ an​ ​ expression​ ​ which​ ​ is​ ​ the​ ​ value​ ​ of​ ​ the​ ​ corresponding​ ​ cell\n   (cells​ ​ enumerated​ ​ in​ ​ the​ ​ order​ ​ `A1,​ ​ A2,​ ​ ...,​ ​ A{N},​ ​ B1,​ ​ ...`).\n\nYou​ ​ can​ ​ assume​ ​ that​ ​ there​ ​ are​ ​ no​ ​ more​ ​ than​ ​ 26​ ​ rows​ ​ (`A-Z`)​ ​ in​ ​ the​ ​ spreadsheet;​ ​ however​ ​ there\ncan​ ​ be​ ​ any​ ​ number​ ​ of​ ​ columns​ ​ (`1-N`).\n\nYour​ ​ program​ ​ must​ ​ output​ ​ its​ ​ data​ ​ in​ ​ the​ ​ same​ ​ format,​ ​ but​ ​ each​ ​ cell​ ​ should​ ​ be​ ​ reduced​ ​ to​ ​ a ​ ​ single\nfloating-point​ ​ value​ ​ (`String.format(“%.5f”,​ ​ val)`).\n\n\n## Test​ ​ vector\n\n![input-output](input-output.png)\n\n\n## Additional​ ​ requirements\n\nFinal​ ​ solution​ ​ should​ ​ only​ ​ use​ ​ the​ ​ standard​ ​ Java​ ​ library​ ​ and​ ​ be​ ​ hosted​ ​ on​ ​ Github.​ ​ Gradle​ ​ script\nshould​ ​ simplify​ ​ build​ ​ process​ ​ and​ ​ the​ ​ main​ ​ usage​ ​ scenario​ ​ should​ ​ be​:\n  - \u003e gradle​ ​-q run​ \u003c input.txt \u003e output.txt\n  \nThe `-q` flag must be added in order to write only the solution in the output.txt,\notherwise it will include the gradle compilation statuses.\n\n--\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffforbeck%2Fspreadsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffforbeck%2Fspreadsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffforbeck%2Fspreadsheet/lists"}