this question is easy we’re going to solve it with recursion 🤪 #computerscience #coding #python

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

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

return sum(nums)
Memorize things is a benefit

iaminfinityiq
Автор

It works but i feel like its better to just iterate over the list
I don't know how python works with array slices but if it creates a new array for each slice thats a ton of extra memory

otter
Автор

You can save both space and time by subdividing the problem

them_best
Автор

Ha, You did the wrog stuff. It should using threading and multiprocessing to speed up.

johnnykatter
Автор

I must learn about recursion or something, because I have no idea how you can call a function inside that function

SolidSnake
Автор

Horrific space complexity for the problem trying to solve.

junzhengca
join shbcf.ru