Skip to content Skip to sidebar Skip to footer
Showing posts with the label Time Complexity

Reducing The Complexity/computation Time For A Basic Graph Formula

I tried to use the basic formula (got it from another SO question), for calculating the max number … Read more Reducing The Complexity/computation Time For A Basic Graph Formula

Time Complexity Of Operation - Python

I was wonder what the time complexity of certain operation in python are: x = k * l ( multiplicatio… Read more Time Complexity Of Operation - Python

Is The Time-complexity Of Iterative String Append Actually O(n^2), Or O(n)?

I am working on a problem out of CTCI. The third problem of chapter 1 has you take a string such as… Read more Is The Time-complexity Of Iterative String Append Actually O(n^2), Or O(n)?

How Do I Reduce The Time Complexity Of This Code Snippet In Python?

I have a compare function here which compares 2 4-digit numbers (non-repeating digits) and gives x … Read more How Do I Reduce The Time Complexity Of This Code Snippet In Python?