Skip to content Skip to sidebar Skip to footer
Showing posts with the label Big O

How Efficient Is Python's Max Function

The function max() which returns the maximum element from a list . . . what is its running time (in… Read more How Efficient Is Python's Max Function

Django Queryset Runtime - Get Nth Entry In Constant Time

I'm using multiple ways to get data from db via different django querysets, but I would like to… Read more Django Queryset Runtime - Get Nth Entry In Constant Time

Confused With Answer About Best/worst Case Time For Python Function

This is a short problem from edx's course Introduction to Computer Science and Programming usin… Read more Confused With Answer About Best/worst Case Time For Python Function

Two Sorted Arrays, Sum Of 2 Elements Equal A Certain Number

I was wondering if I could get some help. I want to find an algorithm that is THETA(n) or linear ti… Read more Two Sorted Arrays, Sum Of 2 Elements Equal A Certain Number