Time and space complexity
Assume we have 2 different sets of code written differently but solve the same problem and run like this:
{ Code 1 }
# after execution:
runtime: 3 seconds
memory allocated: 20 GB
{ Code 2 }
# after execution:
runtime: 40 seconds
memory allocated: 1 G...
blog.benpmd.com2 min read