My Weblog

Blog about programming and math

Project Euler 79

A simple problem which i don’t know why avoid all the time since i started project Euler. I solved it using text editor’s property find and replace all :). As i saw in the forum that many solvers were afraid of repeating element which never occurred to me. Open the text file in any text editor and find the number which is occurring in only first column and this is first digit of pass code.Find it and replace the number with some non integer character or whatever you like but not any digit. Now again try to find out the digit appearing in first column and this will be second digit of pass code. Keep continuing until you consume all the number in text file. Here is the first and last digit of answer but what i learn is anything can be useful while solving problems. So some times it is fun.
7******0

Advertisements

April 18, 2010 - Posted by | Programming

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: