Search found 3 matches

by lamedog
Fri Jun 08, 2012 10:43 pm
Forum: Challenges Solved
Topic: King Rat
Replies: 19
Views: 1960

longer better faster stronger

If you can make it short make it efficient too, this is my long code:

* It doesn't use (abuse) the call stack
* It doesn't write on memory nor damaging the input data
* It uses at most 5 elements of the stack

Code: Select all

0<00^54*:2?3gdp!0^<0^3^:1:2?4g1v2vd1+058*-g
by lamedog
Sun Aug 07, 2011 12:37 am
Forum: Challenges Solved
Topic: Didactic Scrambled Egg Cipher Pre-Warmup
Replies: 9
Views: 861

My brute force solution takes like years to give the answers! my solution; (the real code is too long too ugly and too twisted): cipher = '9488818...' for each key in range(256, 256, 256, 256) is_good_key = True plain = "" for each triple_char in cipher plain += unscramble(triple_char, key...
by lamedog
Tue Jul 26, 2011 1:30 am
Forum: Challenges Solved
Topic: Lorem Ipsum
Replies: 34
Views: 3534

The Python console style

Code: Select all

raw="""
<PASTE THE TEXT HERE>
"""
# drop ponctuation
txt = raw.replace('.', ' ').replace(',', ' ')

# go get the word
list = txt.split()
word = [x for x in list if list.cont(x) == 1]

# here you are!!!
print(word)