python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Maximum sum path from top left to bottom right in a grid using dynamic programming
So I have a n by n grid with 0 at the top left, grid[0][0] marking the start position, and a 0 at the bottom right, grid[n-1][n-1] marking the end position.
The rest of the grid is filled with random ...
Turkey
Votes: 0
Answers: 1
How to Solve Recurrence Relations When Master Theorem is not Applicable
How to mathematically solve the recurrence relations of the following form :
T(n)=(2^n)T(n/2) + n^n
T(n)=4T(n/2) + n^(2)/logn
Is there a generic method to solve these?
I realize that master theorem ...
Dawood Ahmad
Votes: 0
Answers: 1
Why this print statement is executed thhe oppsite order in this recursion?
def isPalindrome(s):
"""Assumes s is a str
Returns True if s is a palindrome; False otherwise.
Punctuation marks, blanks, and capitalization are ignored."""...
HugoWang
Votes: 0
Answers: 1
Solving recurrence of divide and conquer using master theorem
Can T(n) = 3T(n/2) + c T(1)=0, solved using master theorem? If yes, I am struggling on understand master theorem now, could someone tell me which case it falls to and why.
MangHatDa
Votes: 0
Answers: 1