pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Edit Code for CountSingleDigits #332

Closed huseyinsimsekk closed 3 years ago

huseyinsimsekk commented 3 years ago

Description

A comprehensive description about the Pull Request

Reference Issue number #273

issue_no must refer to the issue related to this PR, visit here

Type of change

Choosing one or more options from the following as per the nature of your Pull request. NOTE: Check boxes using [x]

Checklist:

pratik-choudhari commented 3 years ago

@huseyinsimsekk Explain your changes.

huseyinsimsekk commented 3 years ago

Hi @pratik-choudhari . I improved the code. We don't need two foreach statements. We can just control the different digits count.