Problem 246. Project Euler: Problem 8, Find largest product in a large string of numbers
Solution Stats
Problem Comments
-
4 Comments
your problem need the result is: 'The large number will be given as a string, 1xn characters.', but your test suits given is double
hi i have a problem with the fact that how to convert this series into columns of a matrix in double without changing the arrangement ?
any advise on this would much appreciated thankyou
The problem isn't clear. I thought I was looking for the location of the largest of one of string(prod(0:4), prod(1:5), .. prod(5:9)) in the text. But the answers are way larger than either these numbers, or the length of the string.
A lot of solutions fail on a='1111109999'. Be sure to include "Endpoints","discard" when using movprod().
Solution Comments
Show commentsProblem Recent Solvers965
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
44827 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
576 Solvers
-
Get the length of a given vector
8546 Solvers
-
474 Solvers
-
Flip the vector from right to left
6934 Solvers
More from this Author51
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!