How to count the number of comparisons done in the following function?
def function(self,s1,s2,m,n): dp = [[0 for k in range(n+1)] for l in range