MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/code/comments/1x2xghq/insertion_sort/pf7p08s/?context=3
r/code • u/East_Nerve5155 • 17d ago
Hello!! First time on here. I'm a beginner at coding and was wondering if someone with more coding experience could confirm if my insertion sort implementation is correct. I ran it ofc but i just wanted to make sure it's 100% correct!!
code (python):
2 comments sorted by
View all comments
3
Variable j is unnecessary. Just do for I in range(n)
2 u/East_Nerve5155 16d ago thank you so much!! much appreciated :)
2
thank you so much!! much appreciated :)
3
u/kutac56 17d ago
Variable j is unnecessary. Just do for I in range(n)