menu_book Course Curriculum (Data Structures & Algorithms) expand_more
Complexity & Foundations
Arrays & Strings
Linked Lists
Stacks & Queues
Hashing
Trees & Heaps
Graphs
Big Theta notation
Learn Big Theta 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-003.py
python
def total(items):
s=0
for x in items: s+=x # always Θ(n)
return s
print(total([2,4,6,8]))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content