{"id":21502373,"url":"https://github.com/night-codes/scalc_test","last_synced_at":"2025-03-17T13:41:06.081Z","repository":{"id":83544953,"uuid":"234472252","full_name":"night-codes/scalc_test","owner":"night-codes","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-18T00:26:10.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T08:56:06.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/night-codes.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":"2020-01-17T04:44:59.000Z","updated_at":"2024-06-19T12:22:49.045Z","dependencies_parsed_at":"2023-07-07T17:46:15.875Z","dependency_job_id":null,"html_url":"https://github.com/night-codes/scalc_test","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/night-codes%2Fscalc_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fscalc_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fscalc_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fscalc_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/night-codes","download_url":"https://codeload.github.com/night-codes/scalc_test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244043518,"owners_count":20388598,"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-11-23T18:14:42.770Z","updated_at":"2025-03-17T13:41:06.057Z","avatar_url":"https://github.com/night-codes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Task: Sets Calculator\n\nWrite a sets calculator. It should calculate union, intersection and difference of sets of integers for given expression. Grammar of calculator is given:\n```\nexpression := “[“ operator sets “]”\nsets := set | set sets\nset := file | expression\noperator := “SUM” | “INT” | “DIF”\n```\n\nEach file contains sorted integers, one integer in a line.\nMeaning of operators:\n`SUM` - returns union of all sets\n`INT` - returns intersection of all sets\n`DIF` - returns difference of first set and the rest ones\n\nProgram should print result on standard output: sorted integers, one integer in a line.\n\nSolution should include: source code, building script (if building is needed). Final program should be able to be run on Linux. Solution should be delivered in tar archive file: “solution.tgz”.\n\nThe task will be assessed taking into consideration the following criteria (sorted by severity):\n* compliance with specification and correctness\n* good programming practices (clean code)\n* clearness and readability of implemented algorithm\n* computational complexity\n\n## Example:\n\n`$ cat a.txt`\n```\n1\n2\n3\n```\n\n`$ cat b.txt`\n```\n2\n3\n4\n```\n\n`$ cat c.txt`\n```\n3\n4\n5\n```\n\n\n`./scalc [ SUM [ DIF a.txt b.txt c.txt ] [ INT b.txt c.txt ] ]`\n```\n1\n3\n4\n```\n\n## Use:\n\nRun tests:\n`$ make test`\n\nRun app:\n`$ make run`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight-codes%2Fscalc_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnight-codes%2Fscalc_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight-codes%2Fscalc_test/lists"}