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

Python: List Creation By Multiplication Operator Time Complexity

Python What's the time complexity of using a = [1]*n vs. for i in range(n): a.append(1… Read more Python: List Creation By Multiplication Operator Time Complexity

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

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

Time Complexity Of Python Code For Finding The Longest Word That Can Be Made Of Other Words In The List

I am preparing for some coding interviews and came up with a solution to the following problem: &#… Read more Time Complexity Of Python Code For Finding The Longest Word That Can Be Made Of Other Words In The List

Time Complexity Of Python Code For Finding The Longest Word That Can Be Made Of Other Words In The List

I am preparing for some coding interviews and came up with a solution to the following problem: &#… Read more Time Complexity Of Python Code For Finding The Longest Word That Can Be Made Of Other Words In The List