Implement Insertion Sort

preview_player
Показать описание


#neetcode #leetcode #python
Рекомендации по теме
Комментарии
Автор


A lot more content for neetcode.io on the way 🚀🚀🚀

NeetCodeIO
Автор

I know I am nitpicking here, but wouldn't it be better to use classic setup where n = 1 and j = n - 1? In this concrete example, because we need to append initial state to the result your approach is working well, but for general case we would have a blank first loop in forloop.

ForfeitedBrains
Автор

Did you get Nick Fuentes to narrate this?

jjhassy
Автор

I think it would be better if the ratio of pro & nrml codes are 6:4 rather than 8:2

satwiktatikonda
Автор

What did he mean by "because this is an object and we're continually modifying it"? 6:48

doc