Тёмный

Python tips for beginners | Python Hack 99% of the developers don’t know!  

Tech Talks With Mahima
Подписаться 192
Просмотров 5 тыс.
50% 1

Опубликовано:

 

17 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@manis07
@manis07 23 дня назад
Time complexity : na na I don't exist
@viki_sky007
@viki_sky007 Месяц назад
whats the time complexity?
@mukeshprajapati5515
@mukeshprajapati5515 Месяц назад
N^2
@vaibhav901
@vaibhav901 Месяц назад
i am little confused, doesn't this increase complexity? Please reply.
@TechTalksWithMahima
@TechTalksWithMahima Месяц назад
If you are new to coding the yes, but once you become a pro, then no
@RupeshKumar-xi4oo
@RupeshKumar-xi4oo Месяц назад
It doesn't increase the time complexity but a better solution with less time complexity does exist.
@mukeshprajapati5515
@mukeshprajapati5515 Месяц назад
The loop can be run till num/2 only and the result with be same cause if a value can't be divided by it's half then it will only be divided by num itself. For example: if 17 can't be divided by 8 then there is no chance that it can be divided by 9,10 or 16 even, it will be divided by 17 only.
@RupeshKumar-xi4oo
@RupeshKumar-xi4oo Месяц назад
@@mukeshprajapati5515 A much better solution still does exist. this solution does not affect the time complexity much because constant factors are neglected during calculation. hence O(n*n/2) is same as O(n^2)
@RupeshKumar-xi4oo
@RupeshKumar-xi4oo Месяц назад
@@mukeshprajapati5515 A better solution still exists. this solution doesn't affect the time complexity much because during calculation constant factors are neglected hence O(n*n/2) is same as O(n*n)
@MBOT-hz4zx
@MBOT-hz4zx Месяц назад
Nice
@TechTalksWithMahima
@TechTalksWithMahima Месяц назад
Thanks
Далее
5 Really Cool Python Functions
19:58
Просмотров 57 тыс.
How to Measure ANY Cliffs Height with a Rock
00:46
Просмотров 3,6 млн
NVIDIA’s Crazy New AI Paints With Images!
5:21
Просмотров 51 тыс.
How I'd Learn AI (If I Had to Start Over)
15:04
Просмотров 747 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 387 тыс.
Automate your job with Python
6:07
Просмотров 381 тыс.
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Просмотров 106 тыс.
threading vs multiprocessing in python
22:31
Просмотров 566 тыс.
AI Learns to Generate Faces
10:03
Просмотров 16 тыс.