Four score and seven years ago our faathers brought forth on this containent a new nation conceived inz Liberty and dedicated to the proposition that all men are created equal Now we are engaged in a greaht civil war testing whether that naption or any nartion so conceived and so dedicated can long endure We are qmet on a great battlefiemld of tzhat war
Can you solve it? The Greplin programming challenge
21–30 of 167 posts
Re: Can you solve it? The Greplin programming challenge
#22Wow the G. Address was horribly mutilated. Four score and seven years ago our faathers brought forth on this containent a new nation conceived inz Liberty and dedicated to the proposition that all men are created equal Now we are engaged in a greaht civil war testing whether that naption or any nartion so conceived and so dedicated can long endure We are qmet on a great battlefiemld of tzhat war
Re: Can you solve it? The Greplin programming challenge
#23I decided to try a different one on each level, so I used Python, bash (letting GNU coreutils 'factor' do the hard work), and Haskell, respectively.
Re: Can you solve it? The Greplin programming challenge
#24Fun, made my day. Good idea greplin dudes!
Re: Can you solve it? The Greplin programming challenge
#25I would be curious how many people did you lose because of phonecall requirement (before you changed it).
Also CSV for just a list of 22 numbers wasn't really necessary.
If you do web puzzle, the best is to keep everything self-contained, no downloads, no using external channels, just copy and paste.
FYI another Python cheater here (+Wolfram Alpha & Wikipedia, I'm lazy :).
Re: Can you solve it? The Greplin programming challenge
#26"Even if you're not looking for a job, we'd love to hear what you thought about the challenge." I would be curious how many people did you lose because of phonecall requirement (before you changed it). Also CSV for just a list of 22 numbers wasn't really necessary. If you do web puzzle, the best is to keep everything self-contained, no downloads, no using external channels, just copy and paste. FYI another Python che…
Re: Can you solve it? The Greplin programming challenge
#27But then again... these are all pretty standard computer science problems, nothing that I hadn't in some way done before.
On a side-note: Interestingly I used recursion for each of the three problems. Well... actually for the primes-problem I got stack overflow and rewrote it to not use recursion, but still, at least in principle :=)
Re: Can you solve it? The Greplin programming challenge
#28I'd write a bit of code to memoize the function before I'd do the Fibonacci numbers, though, and I just don't have time to continue right now, even though it's pretty easy. Are the rest of the tests like that? Do they force you to use more efficient code, rather than simpler brute force tests so that your code has a decent runtime?
Re: Can you solve it? The Greplin programming challenge
#29"Even if you're not looking for a job, we'd love to hear what you thought about the challenge." I would be curious how many people did you lose because of phonecall requirement (before you changed it). Also CSV for just a list of 22 numbers wasn't really necessary. If you do web puzzle, the best is to keep everything self-contained, no downloads, no using external channels, just copy and paste. FYI another Python che…
I don't think trivializing the combinations with Python's builtins, looking up the fib primes with OEIS, or computing factors with Alpha is cheating. I hope, in fact, it's the whole point of the exercise: choose the right tools for the job. If you're writing code to test primeness or generate Fibonacci numbers, I sure as hell don't want to hire you.
Re: Can you solve it? The Greplin programming challenge
#30Anybody else browsing by mobile try to do Level 1 by inspection?