Problem 024

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.
Post Reply
Joker_Die
Posts: 1
Joined: Tue Feb 17, 2009 5:56 pm

Problem 024

Post by Joker_Die »

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
User avatar
hk
Administrator
Posts: 12842
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 024

Post by hk »

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
Image
War ruins the life and health of untold numbers of innocent children.
Sabik
Posts: 1
Joined: Wed Oct 12, 2011 3:38 pm

Re: Problem 024

Post by Sabik »

I'm currently struggling with this one, can anybody give a hint or two? Thank you.
Image
ffff0
Posts: 50
Joined: Sun Aug 21, 2011 6:26 am
Location: Moscow, Russian Federation

Re: Problem 024

Post by ffff0 »

The first number is 0123456789. Next one is 0123456798. Try to guess, when first digit will change from 0 to 1.
Image
Post Reply