If I have 1000 continuous digits in a list, how many different products of five consecutive digits can I get from the list?
Asked
Active
Viewed 92 times
0
-
Thanks, If I remove element 0 from my list after I have gone through the first iteration, adding each five values and repeat until my list is empty I will have gotten all values? – Padraic Cunningham Oct 16 '13 at 10:21
-
Sorry I was wrong in my first comment, here the right answer: Just choose any digit from 1 to 996 and multiply that number and 4 numbers forward, giving you product of five consecutive digits. Giving you 996 products. – DanielY Oct 16 '13 at 10:25
-
As for your second question, if you loop through the digits from the first until the list is empty you WILL get all the possible products. – DanielY Oct 16 '13 at 10:26