mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-30 09:27:29 +08:00
* added type hints and refactored the code a bit * made output statement more explicit * used f-strings and updated type hints * modified solution function to return an integer solution * updated docstring * Update sol1.py * Update sol2.py Co-authored-by: Dhruv <dhruvmanila@gmail.com>