How to solve the ' Lorem ipsum ' Challenge easily??

Post Reply
dorahan
Posts: 105
Joined: Tue May 27, 2008 10:36 am
Location: HkRkoz al KuwaiT 2019 HaCkEr 101

How to solve the ' Lorem ipsum ' Challenge easily??

Post by dorahan »

i don't know how to solve this challenge... please help me and give me hint about this challenge... i'm very confused.. :shock:
~� dorahan �~
HkRkoz al KuwaiT 2019 HaCkEr 101
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

What programming languages do you know?

I went through and separated out each word, then counted each word, using python. I'm not going to tell you exactly how, though.
dorahan
Posts: 105
Joined: Tue May 27, 2008 10:36 am
Location: HkRkoz al KuwaiT 2019 HaCkEr 101

Post by dorahan »

Actually, i don't know any programming languages... So i need help if anybody want to give me an information to solve this challenge... :cry:
~� dorahan �~
HkRkoz al KuwaiT 2019 HaCkEr 101
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

Then I suggest you learn one. If you plan to get any further, you'll need it.

Why not Java? Google up some tutorials.
Loseway
Posts: 10
Joined: Wed Jun 18, 2008 7:42 pm

Post by Loseway »

You only have to find a program in google which counts the "word frequency" :-D I think to program this by yourself takes much more time than googling for it and a good hacker is fast, right ;-)
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

When I did that, the all of the online ones were JS-based. Since the sample text is so large, it locked up.

I ended up doing it in a python interpreter. If it was a program, it probably would have been 4 or 5 lines.
Loseway
Posts: 10
Joined: Wed Jun 18, 2008 7:42 pm

Post by Loseway »

Actually i am a complete Noob, who cant program anything laugh* and because of that i use google. programming something by yourself is much better :-D!
Allosentient
Posts: 273
Joined: Thu Apr 10, 2008 9:47 pm

Post by Allosentient »

I wrote my own program to do it. If you use C# it can take anywhere from 10 to 60 minutes to write most programs for these problems

Mine was definitely more than 5 lines though
therethinker
Posts: 144
Joined: Fri Mar 28, 2008 11:29 pm
Location: #hacker.org on Freenode

Post by therethinker »

As I think I've said elsewhere, I balance it. If its processor intensive, I'll use C/C++. But if the time I save from writing it in Python is greater than the speed gained from quality C/C++, I'll use Python (as I usually do).

Occasionally, laziness kicks in and I do it in Python anyway ;p
dorahan
Posts: 105
Joined: Tue May 27, 2008 10:36 am
Location: HkRkoz al KuwaiT 2019 HaCkEr 101

Post by dorahan »

This challenge has beed solved. The hint is: you only need "word frequency counter" try to googling it.


:: TOPIC CLOSED ::
~� dorahan �~
HkRkoz al KuwaiT 2019 HaCkEr 101
Post Reply