996 - Find the Sequence & 997 - Show the Sequence
Posted: Fri Jan 05, 2007 10:14 am
In the statement, ' * ' operator is defined as
But this definition doesn't match to the samples, so I think it should be
I got both AC with this definition.
Code: Select all
Vi = {m*S1 if i = 1, Vi-1 + Si-1 if i > 1}
Code: Select all
Vi = {m*S1 if i = 1, Vi-1 * Si if i > 1}