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

Index In An Array Such That Its Prefix Sum Equals Its Suffix Sum - Best Solution

PROBLEM A zero-indexed array A consisting of N integers is given. An equilibrium index of this arra… Read more Index In An Array Such That Its Prefix Sum Equals Its Suffix Sum - Best Solution

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

Recursion Applied To Lists Vs Trees In Python

My main concern with recursion is the recursion limit in Python, which I think is 1000. Taking this… Read more Recursion Applied To Lists Vs Trees In Python

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