摘要: 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 阅读全文
posted @ 2013-04-24 17:21 百分百好牛 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 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 & 阅读全文
posted @ 2013-04-24 17:18 百分百好牛 阅读(221) 评论(0) 推荐(0) 编辑