{"id":22005421,"url":"https://github.com/jitinder/lingumichallenge","last_synced_at":"2025-10-05T07:49:33.041Z","repository":{"id":77512329,"uuid":"132926989","full_name":"jitinder/LingumiChallenge","owner":"jitinder","description":"Solution to the C# Lingumi Challenge","archived":false,"fork":false,"pushed_at":"2018-05-11T18:12:22.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T06:29:09.684Z","etag":null,"topics":[],"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/jitinder.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":"2018-05-10T16:29:49.000Z","updated_at":"2018-05-11T18:12:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6dacf0bd-2c25-49c4-bf48-95db388591b8","html_url":"https://github.com/jitinder/LingumiChallenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jitinder/LingumiChallenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitinder%2FLingumiChallenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitinder%2FLingumiChallenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitinder%2FLingumiChallenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitinder%2FLingumiChallenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitinder","download_url":"https://codeload.github.com/jitinder/LingumiChallenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitinder%2FLingumiChallenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278425498,"owners_count":25984686,"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-10-05T02:00:06.059Z","response_time":54,"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":[],"created_at":"2024-11-30T00:19:49.491Z","updated_at":"2025-10-05T07:49:33.008Z","avatar_url":"https://github.com/jitinder.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LingumiChallenge\nSolution to the C# Lingumi Challenge\n\n\n## Testing Guidelines\n\nAll the Tests (2 at the moment) are written in ProgramTest.cs. \n\n**To Run a Test Case**\n\nEnsure the test exists in ProgramTest.cs. In the Main method of Program.cs, call the test function after instantiating the ProgramTest class.\n\n**To Create a Test**\n\nWrite the test as a function that calls the sendStickers method with the appropriate arguments. Use \"Debug.Assert\" to check whether the obtained result is correct or not.\n\n## Responses to Questions\n\n**1. How does the algorithm work from a high-level perspective?**\n\n\n    The algorithm accepts the two lists (Words and Word IDs of words learnt in the previous lesson) and creates a word list that has the updated values of numberOfTimesLearned for the Words that were recently learned.\n    Then it edits this updated list by removing words that have never been learnt.\n    This list is then sorted in Descending order by numberOfWordsLearned and split into two lists of Words: sent and unsent where \n    - sent contains all words that have hasAlreadyCollected as True.\n    - unsent contains all words that have hasAlreadyCollected as False.\n    The algorithm then returns 3 words from these 2 lists, where priority is given to the 'unsent' list as the word stickers from that class haven't been awarded yet.\n    \n**2. Why did you choose to implement the algorithm in this way?**\n\n\n    It logically appealed to me: As someone playing the game, i'd like the opportunity to eventually earn all stickers of the words i've learned and not just any 3 random stickers from the huge list of words i've learned\n    throughout. By prioritising words i've never got stickers for before, that opportunity is given.\n    Also, it makes sense to earn stickers for a word i've learned many more times than a freshly learned word.\n    By combining these two thoughts, the current algorithm was created.\n\n**3. How could you improve/evolve the algorithm if given more time?**\n\n\n    It's honestly my first time programming in C#, so I focussed mainly on getting the functionality in sync with my intended solution.\n    If given more time, I'd like to explore the language a lot more to understand and apply more efficient ways of writing code in C#.\n    With respect to the algorithm, since the guideline was open-ended in terms of the implementation, I applied the solution that seemed most appropriate to me, but there might have been something i missed. I'd like to spend a bit more time on understanding the problem completely so that i can find the best solution.\n    Also, I'm unaware of what kind of inputs will be actually provided to the function, so there was a limited amount of testing.\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitinder%2Flingumichallenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitinder%2Flingumichallenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitinder%2Flingumichallenge/lists"}