Search found 2 matches

by Smee80
Thu Nov 24, 2011 6:31 pm
Forum: Challenges Solved
Topic: Substitute Teacher
Replies: 28
Views: 2662

When your brain is very much used to the structure of your mother tongue, you can hardly get into this riddle. Furthermore this kind of riddles is rather uncommon in German speaking cultures. I found this challenge was hardly possible to solve without the help of a computer and online ressources. I ...
by Smee80
Tue Nov 22, 2011 1:43 am
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 9424

I like using Python for string manipulation - writing the program takes as long as it takes to type it on the keyboard (simply rewrite the sentences in code): s='...' sum=0 i=0 while i < len(s): if s[i].isdigit(): sum += int(s[i]) i+=1 elif s[i] == 'x': s = s[0:i]+s[i+1:len(s)] i-=2 print sum