348 - Optimal Array Multiplication Sequence
Moderator: Board moderators
-
- New poster
- Posts: 19
- Joined: Sun Jun 18, 2006 4:07 pm
- Contact:
Your code fails the follow inputs:
Output should be:
Code: Select all
10
2 84
84 66
66 8
8 410
410 8
8 96
96 10
10 200
200 10
10 2
10
2 64
64 8
8 55
55 333
333 44
44 887
887 554
554 1
1 226
226 33
0
Code: Select all
Case 1: (((A1 x A2) x A3) x (A4 x (A5 x (A6 x (A7 x (A8 x (A9 x A10)))))))
Case 2: ((A1 x (A2 x (A3 x (A4 x (A5 x (A6 x (A7 x A8))))))) x (A9 x A10))
348 - Optimal Array Multiplication
ACed...
Thanks anyway...
Thanks anyway...
Re: 348: Why am i getting wrong answer?
Thanks......,
Mr. Tommy Wu
For your simple input output, i found my mistake in my program.
Thanks a lot.....
Bye.
Mr. Tommy Wu
For your simple input output, i found my mistake in my program.
Thanks a lot.....
Bye.
-
- Learning poster
- Posts: 99
- Joined: Fri Aug 17, 2012 9:23 pm
- Location: Dhaka
- Contact:
Re: 348 WA
Getting RE !!! Can anyone give me a suggestion please ????
Code: Select all
Deleted after Accepted...