Search found 235 matches

by Lord_Farin
Mon Jun 13, 2011 11:37 am
Forum: Clarifications on Project Euler Problems
Topic: problem 267
Replies: 15
Views: 7973

Re: problem 267

I'm still having trouble understanding. Can you give me an example with numbers. Suppose we can bet £1 for a 50% chance to win £2. Then: if we lose, we get £0 if we win, we get £3 = £1 for the return of the bet, and £2 of the win. In other words, 'win' is synonymous to 'profit.' Or phrased differen...
by Lord_Farin
Mon Jun 13, 2011 11:04 am
Forum: Programming languages
Topic: Language additions for two mobile platforms
Replies: 7
Views: 5355

Re: Language additions for two mobile platforms

(Are Mathematica or MATLAB "languages" or "math environments"?) Mathematica has it's own, interpreted front end application. Since it does thus not need any other programming language to function, I consider it a separate language. On the other hand, I have been using the MathLi...
by Lord_Farin
Sat Jun 11, 2011 8:28 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 254
Replies: 9
Views: 5500

Re: 254

ukimiku wrote:Maybe it would be helpful to add to the problem description a further constraint on the positive integers in question, namely that they be written without any leading zeroes.
In general, for PE problems the policy is that no leading zeroes are allowed, except if explicitly mentioned.
by Lord_Farin
Wed Jun 08, 2011 8:52 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 119
Replies: 9
Views: 4377

Re: Problem 119

TeX parsing errors on this problem's forum (http://projecteuler.net/index.php?section=forum&id=119 fifth post). Putting

Code: Select all

 tags should fix it.
by Lord_Farin
Wed Jun 08, 2011 7:52 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 053
Replies: 13
Views: 4499

Re: Problem 053

Im having a ton of trouble with this one. My program will return 1144066 for 23 C 10 , but my count is always wrong. tried changing it a little tons of times, really cant see anything wrong. anyone care to look at it? i wrote it in java. If you don't manage to solve it with the above suggestion, I ...
by Lord_Farin
Tue Jun 07, 2011 9:05 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 162
Replies: 37
Views: 16962

Re: Problem 162

Recursion is slow if your programming language does not use lazy evaluation or internal memoization. Most languages don't. In such cases, it helps (most of the time) to implement memoization yourself (i.e., an array of previous results) and then build up the result gradually. This resolves the perfo...
by Lord_Farin
Mon Jun 06, 2011 10:06 pm
Forum: News, Suggestions, and FAQ
Topic: Main Website is Very Slow
Replies: 6
Views: 3313

Re: Main Website is Very Slow

One of my summer projects was to do a rewrite of the website engine the powers Project Euler and the need to do so has been strengthened by this. I have done some MySQL query efficiency improving in the past, and PHP development takes up quite a lot of my free time. Please, feel free to ask for any...
by Lord_Farin
Mon Jun 06, 2011 7:30 pm
Forum: News, Suggestions, and FAQ
Topic: Main Website is Very Slow
Replies: 6
Views: 3313

Re: Main Website is Very Slow

The main website is very slow and often gives an error that a sql connections is unavailable. Is there any easy and not too expensive way to fix this? If it is a simple question of a little money, perhaps I could raise a little money for the project. If it a more complicated technical issue, perhap...
by Lord_Farin
Mon Jun 06, 2011 6:10 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 001
Replies: 149
Views: 59762

Re: Problem 001

hk wrote:@Lord_Farin: if this kind of behaviour starts irritating you, just ignore. The admins will handle in a few minutes/hours more.
You are absolutely right. Thanks for stating the obvious. I appreciate what you and the rest of the team go through to keep it enjoyable for everyone. Thanks again.
by Lord_Farin
Mon Jun 06, 2011 7:58 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 001
Replies: 149
Views: 59762

Re: Problem 001

Using python I used a similar brute force solution to many others [snip] After which I found a simple, elegant, one-line solution [snip] Although there's probably a way that this can be made simpler and quicker... Would you now please take the time and read the BIG RED BOX on top of the page, and a...
by Lord_Farin
Sat Jun 04, 2011 8:34 pm
Forum: News, Suggestions, and FAQ
Topic: Are all new problems difficult ones?
Replies: 6
Views: 4547

Re: Are all new problems difficult ones?

... however our difficulty estimate is quite bad more often than not, so this doesn't say that much. ... I think this phrase tells you that such a system would not be accurate. Further, one hundred solvers in half a week makes a problem almost certainly easier than one hundred in a month; keep that...
by Lord_Farin
Sat Jun 04, 2011 2:55 pm
Forum: News, Suggestions, and FAQ
Topic: Are all new problems difficult ones?
Replies: 6
Views: 4547

Re: Are all new problems difficult ones?

I wonder if all new problems are difficult ones, or only for math/coding freaks. I mean there are some not so difficult ones in between but will there be also some "easy" new ones or is it becoming more and more difficult? Problems are to be considered easy if after a week, more than 250 ...
by Lord_Farin
Fri Jun 03, 2011 7:17 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 007
Replies: 50
Views: 18555

Re: Problem 007

IncanD wrote:Since I cannot post any code snippets of any sort, would anybody be willing to share e-mails with me?
If your language is Mathematica, Java, C, C++ or Haskell, or you deem at least one of those to be similar enough, you can use the forum's PM functionality to send me your code.
by Lord_Farin
Mon May 30, 2011 5:33 pm
Forum: Clarifications on Project Euler Problems
Topic: problem 267
Replies: 15
Views: 7973

Re: problem 267

I'm troubled with the text of problem 267. It says "...For example, if f = 1/4, for the first toss you bet £0.25, and if heads comes up you win £0.5 and so then have £1.5. You then bet £0.375 and..." How come from having £1 you end up having £1.5? If you bet £0.25 and win, you should have...
by Lord_Farin
Mon May 30, 2011 10:29 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 017
Replies: 83
Views: 32823

Re: Problem 017

pytom wrote: sorry, terrible sorry~ :( i make a mistake~
Mistakes are good. They keep us human 8-) Thanks for your apologies.
by Lord_Farin
Mon May 30, 2011 8:36 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 017
Replies: 83
Views: 32823

Re: Problem 017

pytom wrote:this one is ok~ :D

Code: Select all

[Snip]
In fact, it is not. The bright red box above this forum should tell you (and should've in advance) that posting such results is **NOT** allowed. Please, remove your code.
by Lord_Farin
Sat May 28, 2011 7:15 pm
Forum: News, Suggestions, and FAQ
Topic: one-liner solutions
Replies: 7
Views: 4924

Re: one-liner solutions

I have done some solutions with python, each in one line. Here are the solutions for problem 1, 6, 8, 9, 13, 16, 19, 20, 25 and 29 described. Edit by hk: spoilers removed. I am afraid that as this is an open forum, there is a policy that no spoilers on how to solve problems are allowed to be posted...
by Lord_Farin
Tue May 24, 2011 7:42 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 339
Replies: 27
Views: 11111

Re: Problem 339

In fact I'm thinking people shouldn't be so nitpickingish about this problem. I must say I am disappointed getting such a reaction, whilst only trying to help PE out on some spelling and grammar errors I noticed. To support you, however, I found the wording of the problem clear enough from the star...
by Lord_Farin
Mon May 23, 2011 6:47 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 339
Replies: 27
Views: 11111

Re: Problem 339

Just a small wording problem: The problem description says 'Peredur vab Efrawc', while the text talks about 'Peredur, son of Evrawc'. I take it that 'vab' means 'son of', but could the spelling of 'Evrawc' please be applied consistently?
by Lord_Farin
Sat May 21, 2011 4:36 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 003
Replies: 128
Views: 56760

Re: Problem 003

haider.jafree wrote:plz tell me which algorithm to use for that problem
Such a ridiculous request. This would be against the spirit of all that PE aspires to be.