hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Challenge '3280'

 
Reply to topic    hacker.org Forum Index » Challenges View previous topic
View next topic
Challenge '3280'
Author Message
newbsauce



Joined: 08 Sep 2008
Posts: 7

Post Challenge '3280' Reply with quote
Challenge '3280' [Coding]

What's the most common 9-letter word in RFC 3280?


You just..have to know it? >.>; I fail.
Sun Sep 14, 2008 8:17 pm View user's profile Send private message
MerickOWA



Joined: 07 Apr 2008
Posts: 182
Location: HkRkoz al KuwaiT 2019 HaCkEr 101

Post Reply with quote
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 Wink
Mon Sep 15, 2008 5:33 pm View user's profile Send private message
newbsauce



Joined: 08 Sep 2008
Posts: 7

Post Reply with quote
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 Wink

oh. lol XD im so noobish. thanks.
Mon Sep 15, 2008 8:26 pm View user's profile Send private message
Kuzmin



Joined: 19 Jul 2008
Posts: 10

Post Reply with quote
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 Smile
Tue Sep 16, 2008 11:21 am View user's profile Send private message
canine



Joined: 14 Sep 2008
Posts: 189

Post uhh Reply with quote
You could also a shell script.

Something along the lines of:

Code:
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.
Thu Sep 18, 2008 12:24 am View user's profile Send private message
executioner



Joined: 29 Oct 2008
Posts: 1

Post Reply with quote
i tried to analyze it using an online service, but the 9-letter word occuring most often is not the answer... would be "standards"
Thu Oct 30, 2008 1:11 pm View user's profile Send private message
the_impaler



Joined: 30 Apr 2008
Posts: 61

Post Reply with quote
Usually, RFCs have list of authors at the beginning with their addresses.
You could simply ask one of the authors.
Thu Oct 30, 2008 4:01 pm View user's profile Send private message
Atsutane



Joined: 28 Oct 2008
Posts: 3

Post Reply with quote
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 ... Wink

executioner, Well I solved that challenge just yesterday and the most used 9-letter word in fact is the answer.
Thu Oct 30, 2008 10:17 pm View user's profile Send private message
Minor



Joined: 08 Jul 2009
Posts: 2

Post Reply with quote
Heh, I guess it from first try!

LOL!
Tue Sep 29, 2009 11:31 am View user's profile Send private message
1nFinity865



Joined: 02 Oct 2009
Posts: 2

Post Reply with quote
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:
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...
Code:
java.lang.OutOfMemoryError


... oops
Sun Oct 04, 2009 2:53 pm View user's profile Send private message
Zeta



Joined: 16 Apr 2009
Posts: 62

Post Reply with quote
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.
Sun Oct 04, 2009 6:04 pm View user's profile Send private message
1nFinity865



Joined: 02 Oct 2009
Posts: 2

Post Reply with quote
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!!!!! Laughing
Mon Oct 05, 2009 6:40 pm View user's profile Send private message
bookbook0089



Joined: 28 Nov 2009
Posts: 1

Post Reply with quote
thanks pal...this is useful
Sat Dec 05, 2009 2:50 pm View user's profile Send private message
Masti6



Joined: 15 May 2010
Posts: 55
Location: Finland, Nurmes

Post Reply with quote
You can use an online word counter as well.
Sun May 16, 2010 7:01 pm View user's profile Send private message MSN Messenger
Display posts from previous:    
Reply to topic    hacker.org Forum Index » Challenges All times are GMT
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.