Really precise writing! I paused reading the code at first trying to figure out what the heck the point was of assigning and then immediately reassigning isSorted. As soon as I read your explanation of it being used to "escape from the while loop" it made total sense. 👍
Full-Stack Software Engineer; using a background in Acting and Voice-Over to pursue a lifelong love of software and technology from an arts and humanities perspective.
Thanks Theo! I'm glad that part wasn't too confusing, I was doing my best to try and frame it so that people wouldn't be left hanging on that part for too long-- I know it's a bit of a weird leap of logic until you understand the next part.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Really precise writing! I paused reading the code at first trying to figure out what the heck the point was of assigning and then immediately reassigning isSorted. As soon as I read your explanation of it being used to "escape from the while loop" it made total sense. 👍
Thanks Theo! I'm glad that part wasn't too confusing, I was doing my best to try and frame it so that people wouldn't be left hanging on that part for too long-- I know it's a bit of a weird leap of logic until you understand the next part.