483 points · by emersonrsantos · 9y ago · 57 comments
I'd be more happy with a book that has 50 fairly simple apps to build in a simple language like Python where the apps aren't a whole lot longer than tic-tac-toe (~1/2 page).
The problems are mostly bioinformatics related, which often boils down to string manipulation/comparison, graph theory
https://github.com/seaneshbaugh/rosetta-euler
It's an ongoing thing I work on when I'm not working on anything in particular.
> I learned so much solving problem XXX so is it okay to publish my solution elsewhere?
It appears that you have answered your own question. There is nothing quite like that "Aha!" moment when you finally beat a problem which you have been working on for some time. It is often through the best of intentions in wishing to share our insights so that others can enjoy that moment too. Sadly, however, that will not be the case for your readers. Real learning is an active process and seeing how it is done is a long way from experiencing that epiphany of discovery. Please do not deny others what you have so richly valued yourself.
Just saying.
Dare you to add an HDL.
Although I agree with another poster that Euler is a bit math heavy, being able to submit a single number to check your solution is handy. Google's foobar recruiting puzzle system actually tests your program, but it's limited to Python and Java.
Non-trivial if "look for ways to make it more efficient" means non-trivial suggestions (ie. not "add moar indexes").
Thanks OP for posting the link; I'm glad to see people like it. I'll be reading comments here, so keep 'em coming. ;)
I have the theory part covered, but I'm always on the lookout for things that could make for decent practical assignment problems - reasonably attainable in scope, but without being too contrived.
not to sound pedantic, but for any integer greater than 1 there is always at least one prime factor: https://en.wikipedia.org/wiki/Fundamental_theorem_of_arithme...
edit: for prime numbers, it is the number itself
besides, you may as well consider 1 a prime factor. the task is just a silly programming toy problem. 1 not being prime is pure definition, including 1 in the primes would not materially change the definition of primes. just make a lot of advanced math tedious to write down.
(Your point stands, though: every integer > 1 has at least one prime factor.)
[0]: https://sites.google.com/site/prologsite/prolog-problems
[1]: http://www.ic.unicamp.br/~meidanis/courses/mc336/2006s2/func...
[2]: https://wiki.haskell.org/99_questions
[3]: https://wiki.python.org/moin/ProblemSets/99%20Prolog%20Probl...
But we could also consider another example: try to return the nth digit using a regular expression.
Coq is certainly a programming language, as you can build programs. But you can't interact with the subsystem, you can only build pure functions (Therefore it is quite hard to build a performance monitor).
In my opinion English could also go as a programming language. Especially given the rise in NLP products. You can actually program a computer to do quite advanced tasks solely through natural languages.
Some bloke called Turing had a few ideas on a definition. (I'll whisper "whoosh" here - for my own note)
Given that any programming language can be defined in English (or any other human language, with a few contortions as required, if any) then of course English can be used to create a Turing Machine (TM). It doesn't take much NLP to define a full TM via speech.
Or try to make an <insert non-trivial application> in Brainf*uck.
The platform is all open source on Github.
Yeah, running it all client-side makes more sense. See my profile info if you ever feel like chatting about it.
I've been looking for some meatier projects that still have good feedback loops, without requiring too much domain knowledge.
For example, I've been working through a project with the friend that involves scraping prices off of a website and trying to build a thing to automatically order things off of the websites.
Multiple distinct parts, each with their own, very visible, success state. But at the same time, not too many challenging domain specific issues (main issue was just explaining CSS selectors and form POSTs).
They contain a surprising amount of basic computer science in very short questions. Master them and you'll be well on your way to understanding functional (or declarative, in the case of Prolog) programming.