Challenge '3280'
Challenge '3280'
Challenge '3280' [Coding]
What's the most common 9-letter word in RFC 3280?
You just..have to know it? >.>; I fail.
What's the most common 9-letter word in RFC 3280?
You just..have to know it? >.>; I fail.
uhh
You could also a shell script.
Something along the lines of:
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.
Something along the lines of:
Code: Select all
wget "http://tools.ietf.org/rfc/rfc3280.txt" -O - | <commands go here> |less
If you're doing any sort of processing of data, ordinary GNU tools or things like perl and sed are your friends.
-
- Posts: 1
- Joined: Wed Oct 29, 2008 1:53 pm
-
- Posts: 61
- Joined: Wed Apr 30, 2008 3:31 am
They'd sure be happy to be asked that question every few days ...the_impaler wrote:Usually, RFCs have list of authors at the beginning with their addresses.
You could simply ask one of the authors.
executioner, Well I solved that challenge just yesterday and the most used 9-letter word in fact is the answer.
-
- Posts: 2
- Joined: Fri Oct 02, 2009 1:28 pm
Uhhh, maebe i shouldnt be doing this in java...
i added " **END** " to the end of the file and started writing my java app:
well... this is what happens...
... oops
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();
}
}
}
Code: Select all
java.lang.OutOfMemoryError
-
- Posts: 2
- Joined: Fri Oct 02, 2009 1:28 pm