walkccc / CLRS

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

Problem 10.3 #310

Open rualark opened 4 years ago

rualark commented 4 years ago

C. Using i at the same time for selected element (in the question) and for distance between desired element and selected element (in solution) results in confusion. i in solution should be changed to an unused variable name.