{"id":18329862,"url":"https://github.com/somdipdey/coding_kata_repeatchop_and_fizzbuzz","last_synced_at":"2026-05-19T04:13:29.464Z","repository":{"id":83917487,"uuid":"113106541","full_name":"somdipdey/Coding_Kata_RepeatChop_And_FizzBuzz","owner":"somdipdey","description":"Coding kata to remove extra characters and print fizz buzz challenges","archived":false,"fork":false,"pushed_at":"2017-12-05T22:26:47.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T10:31:21.256Z","etag":null,"topics":["challenge","complexity","complexity-analysis","csharp","dotnet","fizz-buzz","fizzbuzz","on","remove-duplicates","stringextension"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/somdipdey.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-12-04T23:21:47.000Z","updated_at":"2017-12-04T23:40:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"48231230-8e97-4450-9e01-c886888cf4cb","html_url":"https://github.com/somdipdey/Coding_Kata_RepeatChop_And_FizzBuzz","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/somdipdey%2FCoding_Kata_RepeatChop_And_FizzBuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somdipdey%2FCoding_Kata_RepeatChop_And_FizzBuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somdipdey%2FCoding_Kata_RepeatChop_And_FizzBuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/somdipdey%2FCoding_Kata_RepeatChop_And_FizzBuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/somdipdey","download_url":"https://codeload.github.com/somdipdey/Coding_Kata_RepeatChop_And_FizzBuzz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248078671,"owners_count":21044160,"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":["challenge","complexity","complexity-analysis","csharp","dotnet","fizz-buzz","fizzbuzz","on","remove-duplicates","stringextension"],"created_at":"2024-11-05T19:18:57.858Z","updated_at":"2026-05-19T04:13:24.429Z","avatar_url":"https://github.com/somdipdey.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This mini project tackles two challenges as follows\n\n## 1) ====== Remove Extra Chars ======\n\tReturn a string where the number of consecutive characters of the same value is limited to the parameter supplied\n\tExample: \"aaabbcccccdddd\".RemoveConsecuitiveChars(2) should return \"aabbccdd\"\n\n## 2) ====== Fizz Buzz ======\n\tShould return each number between zero and its parameter but replaces multiples of 3 with 'Fizz' and multiples of 5 with 'Buzz'\n    Where the number of 'z' characters each word is the same as the other factor of the input number\n    For multiples of both 3 and 5 replace the number with both of the corresponding 'Fizz'-'Buzz' words. eg 15=\\\"Fizzzzz-Buzzz\\\n\n# Solutions\n\n## Challenge 'Remove Extra Chars'\n\tIn the StringExtension class, RemoveConsecuitiveChars(int) method accepts the number of allowed consecutive characters as int.\n\tThe characters in the passed string are put into a HasSet so that the distinct characters in the string can be retrieved. And then use the string\n\tbuidling method to build the final string based on the allowed consecutive characters.The implementation has a time complexity of O(N).\n\n## Challenge 'Fizz Buzz'\n\tIn the FizzBuzzCalculator class the method FizzBuzz(int) is broken into smaller task to achieve completion of this method. Inside the FizzBuzz method an iterator ietrates till the int provided\n\tas argument to the method from 0. For each number in the ietration, the factorial of that number divisible by 3 or and 5 are retrived in the form of Tuples.\n\tThis implemntation also has time complexity of O(N). The return value of FizzBuzz(int) is a list of string obejcts and the gcAllowVeryLargeObjects is set to true to enable the CLR to allow large objects\n\tgreater than 2GB during the runtime. This method is also executed for FizzBuzz(100000) and the program ran to completion. \n\t\n# Result Screenshot\n\n![Solution Result Fizz Buzz](https://user-images.githubusercontent.com/8515608/33633571-43848d1a-da09-11e7-8914-d4fc19773d93.png \"Remove repetetive characters\")\n\t\n![Solution Result Fizz Buzz](https://user-images.githubusercontent.com/8515608/33633569-434677f0-da09-11e7-81aa-df4bfc00ee88.png \"Fizz Buzz output on console\")\n\n#### Fizz Buzz solution's memory footprint for Parameter = 100,000 i.e. FizzBuzz(100000)\n\n![Solution Result Fizz Buzz](https://user-images.githubusercontent.com/8515608/33633570-436ac4ca-da09-11e7-922d-1290c942d8fb.png \"Fizz Buzz application footprint on memory for Parameter = 100,000\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomdipdey%2Fcoding_kata_repeatchop_and_fizzbuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomdipdey%2Fcoding_kata_repeatchop_and_fizzbuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomdipdey%2Fcoding_kata_repeatchop_and_fizzbuzz/lists"}