kilian-hu / hackerrank-solutions

A collection of solutions to competitive programming exercises on HackerRank.
https://www.hackerrank.com/0xC0FFEE64
403 stars 176 forks source link

Update solution.py #13

Open tejas-su opened 4 months ago

tejas-su commented 4 months ago

Optimized for other test cases. This approach ensures a time complexity of 𝑂(𝑛), which is optimal for handling large inputs efficiently.