menu_book Course Curriculum (Data Structures & Algorithms) expand_more
Complexity & Foundations
Arrays & Strings
Linked Lists
Stacks & Queues
Hashing
Trees & Heaps
Graphs
Big O notation
Learn Big O notation in Data Structures & Algorithms with a focused explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Beginner
data-structures-algorithms-001.py
python
def contains(items,target):
for item in items: # O(n)
if item==target: return True
return False
print(contains([4,8,15,16],15))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content