Page 1 of 1
Challenge '3280'
Posted: Sun Sep 14, 2008 8:17 pm
by newbsauce
Challenge '3280' [Coding]
What's the most common 9-letter word in RFC 3280?
You just..have to know it? >.>; I fail.
Posted: Mon Sep 15, 2008 5:33 pm
by MerickOWA
I wrote a program to read the RFC 3280 out of a text file and count the number of times each 9-letter word appears.
I suppose you could guess
Posted: Mon Sep 15, 2008 8:26 pm
by newbsauce
MerickOWA wrote:I wrote a program to read the RFC 3280 out of a text file and count the number of times each 9-letter word appears.
I suppose you could guess
oh. lol XD im so noobish. thanks.
Posted: Tue Sep 16, 2008 11:21 am
by Kuzmin
You could also use a word frequency calculator as the one used in some other challenge, and then look through the most popular words, should be easier than writing programs specifically for these challenges
uhh
Posted: Thu Sep 18, 2008 12:24 am
by canine
You could also a shell script.
Something along the lines of:
Code: Select all
wget "http://tools.ietf.org/rfc/rfc3280.txt" -O - | <commands go here> |less
I snipped the relevant code, but it's just standard GNU tool commands. Filter out the punctuation and whitespace, filter for the appropriate word length, etc.
If you're doing any sort of processing of data, ordinary GNU tools or things like perl and sed are your friends.
Posted: Thu Oct 30, 2008 1:11 pm
by executioner
i tried to analyze it using an online service, but the 9-letter word occuring most often is not the answer... would be "standards"
Posted: Thu Oct 30, 2008 4:01 pm
by the_impaler
Usually, RFCs have list of authors at the beginning with their addresses.
You could simply ask one of the authors.
Posted: Thu Oct 30, 2008 10:17 pm
by Atsutane
the_impaler wrote:Usually, RFCs have list of authors at the beginning with their addresses.
You could simply ask one of the authors.
They'd sure be happy to be asked that question every few days ...
executioner, Well I solved that challenge just yesterday and the most used 9-letter word in fact is the answer.
Posted: Tue Sep 29, 2009 11:31 am
by Minor
Heh, I guess it from first try!
LOL!
Posted: Sun Oct 04, 2009 2:53 pm
by 1nFinity865
Uhhh, maebe i shouldnt be doing this in java...
i added " **END** " to the end of the file and started writing my java app:
Code: Select all
import java.io.*;
public class RFC
{
public static void main(String[] args) throws IOException
{
BufferedReader br = new BufferedReader(new FileReader("rfc.txt"));
String line = br.readLine();
StringBuffer sb = new StringBuffer();
while(line != "**END**")
{
sb.append(line);
line = br.readLine();
}
}
}
well... this is what happens...
... oops
Posted: Sun Oct 04, 2009 6:04 pm
by Zeta
If all else fails, read the manual.
I would advise you to do some reading, covering equality of strings in java and the behavior of readLine when the end of stream is reached.
Posted: Mon Oct 05, 2009 6:40 pm
by 1nFinity865
ok, thanks - got it to work eventually!
to those who can't get the answer.. i'll give you a hint: It has NINE LETTERS!!!!!
Posted: Sat Dec 05, 2009 2:50 pm
by bookbook0089
thanks pal...this is useful
Posted: Sun May 16, 2010 7:01 pm
by Masti6
You can use an online word counter as well.