Could anyone please clarify me problem #24 of project euler? I'm not a native english speaker, so I found it tought to understand.
Thanks in advance
Problem 024
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.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
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
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.
- hk
- Administrator
- Posts: 12842
- Joined: Sun Mar 26, 2006 10:34 am
- Location: Haren, Netherlands
Re: Problem 024
There are 6 permutations of the digits 0,1,2.
012
021
120
102
210
201.
If I sort those numbers in the order of their digits, I get
012
021
102
120
201
210
We call this sorted list the lexicographic order of those six permutatations.
As 120 is the fourth one of this list the fourth lexicographic permutation of the digits 0,1,2 is 120
012
021
120
102
210
201.
If I sort those numbers in the order of their digits, I get
012
021
102
120
201
210
We call this sorted list the lexicographic order of those six permutatations.
As 120 is the fourth one of this list the fourth lexicographic permutation of the digits 0,1,2 is 120

War ruins the life and health of untold numbers of innocent children.
-
Sabik
- Posts: 1
- Joined: Wed Oct 12, 2011 3:38 pm
-
ffff0
- Posts: 50
- Joined: Sun Aug 21, 2011 6:26 am
- Location: Moscow, Russian Federation
Re: Problem 024
The first number is 0123456789. Next one is 0123456798. Try to guess, when first digit will change from 0 to 1.

