menu_book Course Curriculum (Data Structures & Algorithms) expand_more
Complexity & Foundations
Arrays & Strings
Linked Lists
Stacks & Queues
Hashing
Trees & Heaps
Graphs
Space complexity
Learn Space complexity in Data Structures & Algorithms with a focused explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Beginner
Advertisement
data-structures-algorithms-009.py
python
def doubled(values):
output=[x*2 for x in values] # O(n) auxiliary output
return output
print(doubled([1,2,3,4]))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content