Incorrect sample case?
Hi all,\n\nI am little confused about the first sample case which is [[2,1],[5,0],[4,2]]\n\nIf we start with money = 8, and let\' say we execute the transaction
Hi all,\n\nI am little confused about the first sample case which is `[[2,1],[5,0],[4,2]]`\n\nIf we start with money = `8`, and let\' say we execute the transactions in the order `[[4,2],[2,1],[5,0]]`, \nthen it will look like, \n\n* 8 - 4 + 2 = 6\n* 6 - 2 + 1 = 5\n* 5 - 5 + 0 = 0\n\nSo, this way, answer for this should be `8` and not `10`. Isn\'t it?
[]