walkccc / CLRS

📚 Solutions to Introduction to Algorithms Third Edition
https://walkccc.me/CLRS
MIT License
4.63k stars 1.26k forks source link

Update 2.1.md #444

Closed AndrewRoe34 closed 2 years ago

AndrewRoe34 commented 2 years ago

The previous solution has a couple mistakes involved (utilizing the loop variable beyond its block, incorrect output). I wrote up the issue report via this link: https://github.com/walkccc/CLRS/issues/437

walkccc commented 2 years ago

Thank you! Modify a little bit to not use the ternary operator in the pseudocode 🙂