Problem 011

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
DarcyOlson
Posts: 1
Joined: Mon Aug 31, 2015 9:32 am

Problem 011

Post by DarcyOlson »

For problem 11, can entries be considered row adjacent if they are in a different row. For example, from row 1 to row 2, would entries 91 08 49 49 be considered adjacent?
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 011

Post by hk »

Please don't make a new topic for a problem if there exists one already.
Image
War ruins the life and health of untold numbers of innocent children.
User avatar
dawghaus4
Posts: 56
Joined: Fri Nov 29, 2013 2:22 am

Re: Problem 011

Post by dawghaus4 »

DarcyOlson wrote:For problem 11, can entries be considered row adjacent if they are in a different row. For example, from row 1 to row 2, would entries 91 08 49 49 be considered adjacent?
No. You would have to change directions to get back to 49 49.

Tom
User avatar
HappyS5
Posts: 11
Joined: Wed Apr 26, 2017 9:17 pm

Re: Problem 011

Post by HappyS5 »

Hello,

I was wondering the same. Has an administrator made a comment on any other problems that are the same as this? If so, link?

The reason why I wonder if row to row adjacent is a possibility is because my current algorithm is currently calculating the products as if a number in another row but following a row is adjacent. I personally don't think they are but it made me think and ask this question.
Last edited by HappyS5 on Sat Apr 29, 2017 3:29 am, edited 1 time in total.
HappyS5
Chris
User avatar
HappyS5
Posts: 11
Joined: Wed Apr 26, 2017 9:17 pm

Re: Problem 011

Post by HappyS5 »

Hello,

Are the ends and beginnings from one row to another considered adjacent? I have read but what I read was vague. Also, I don't really trust anyone except an administrator or someone with many posts.

Example:

20 73 35 29 78 31 90 01 74 31 49 71 48 86 81 16 23 57 05 54
01
70 54 71 83 51 54 69 16 92 33 48 61 43 52 01 89 19 67 48

is 54 and 01 considered adjacent for the problem. To be specific, would "57 05 54 and 01" be adjacent? Initially, I thought no but now I am confused.
HappyS5
Chris
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 011

Post by hk »

No, 57 05 54 01 are not adjacent, because 01 isn't adjacent to 54. (so no scrolling around)
However, 23 57 05 54 or 01 70 54 71 are.
Image
War ruins the life and health of untold numbers of innocent children.
User avatar
HappyS5
Posts: 11
Joined: Wed Apr 26, 2017 9:17 pm

Re: Problem 011

Post by HappyS5 »

OK,

To me, my question did not meet the criteria for "adjacent" but I wanted to make sure.

Thanks!
HappyS5
Chris
Post Reply