Udemy: Data structure in Python lesson 1,2 :O(n)

本文介绍了Udemy上的Python数据结构与算法课程,强调了Big O概念,包括O(n)、O(n*2)、O(log n)和O(1)等时间复杂度,并探讨了常见数据结构操作的最坏情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1 Introduction

【Udemy高分付费课程】Python数据结构与算法 - 终极 Python 编码面试和计算机科学训练营(中英文字幕)_哔哩哔哩_bilibili断断续续一周刷完了udemy的数据结构和算法课程,由于之前只学过Python和Matlab,所以选择用python来学习数据结构;视频通过动画演示,使晦涩难懂的知识变得清晰有趣了很多,以此作为入门是极好的(尤其是英语不错的同学),推荐一波。

2 Big O

​​​​​​​Big O is the compare effect for both the time complexity and space complexity. It describes the worst case when running a program, which leads to the biggest complexity.

omega (n): best case, theta(n): medium case, O(n): worst case

2.1 O(n)

Some examples:

O(n) : proportional

O(n*2): loop within a loop

O(log n): divide and conquer

O(1): constant

O(n log n):  a combined case o

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值