4 ms·
Here's my algorithm: 1. Parse the program input with a lexical analyzer that: i. Loops through each character. ii. Appends it to a buffer. 2. Submit t
by technoguyrob 19y ago
Here's my algorithm:
1. Parse the program input with a lexical analyzer that:
i. Loops through each character.
ii. Appends it to a buffer.
2. Submit the lexed program to eLance with a 7-week bid.
i. If someone with at least one project completed bids on it, continue.
ii. If no one responds by the 7th day, return an error: "Syntax error in program. Please recode."
3. Accept the bid.
4. while(!checkIfIndianSentCompletedProjectFiles() && isTakingLessThanTwoMonths()) Sleep(1);
5. if (!isTakingLessThanTwoMonths()) return a run-time error: "Temporal stack overflow."
6. else print resultant code.
It takes a long time to compile some projects, but it's reasonable, since it is after all a very, very high level programming language.
- jcl 19y agoNice. I notice that unlike most algorithms I've read, this one requires a credit card number as an input. :)