摘要:
Q: function takes input x , y , A and Nreturns true ifthere are atleast N pairs of x and y satisfyingx^3 + y^3 = A;all inputs are postive integer valuesA: Taxicab numberhttp://en.wikipedia.org/wiki/Taxicab_number 阅读全文
摘要:
Q: Suppose we want to convert one string S1 to another string S2 using only 3 types of operations:-Insert(pos,char) (costs 8)-Delete(pos) (costs 6)-Replace(pos,char) (costs 8)Find the sequence of steps to convert S1 to S2 such that the cost to convert S1 to S2 is minimum.Eg. 'calculate' to & 阅读全文