John D'Errico
1640
1640
Rank7
7
Badges1566
1566
Score
John D'Errico liked Problem 42936. Project Euler: Problem 11, Largest product in a grid on 16 Jul 2021 |
John D'Errico submitted Solution 5684500 to Problem 42404. Divisible by 2 on 4 May 2021 |
John D'Errico submitted Solution 5684460 to Problem 42404. Divisible by 2 on 4 May 2021 |
John D'Errico received Quiz Master badge for Solution 2931295 on 10 Sep 2020 |
John D'Errico submitted a Comment to Problem 43642. Euclidean distance from a point to a polynomial I'm enjoying these creative solutions.
on 4 May 2018 |
John D'Errico submitted a Comment to Problem 1428. Find the optimal shape to bring the maximum product by a given perimeter I updated the problem explanation to be a bit more clear. I also repaired the checks for a valid solution to use a relative test, mainly valuable for one of the cases where an absolute test on the error was a poor choice.
on 26 Mar 2018 |
John D'Errico submitted a Comment to Problem 1428. Find the optimal shape to bring the maximum product by a given perimeter I took a look at the test cases. The 4th test has a result that is expected to be on the order of 1e40. Then it compares that to the solution returned, and tests to see if the absolute difference is less then 1e-4? eps(1e40) is roughly 1e24. So the difference between two numbers of size 1e40 will never be less than 1e-4, unless they are IDENTICAL. Far better would be to test if the relative difference is small.
on 26 Mar 2018 |
John D'Errico submitted Solution 1471543 to Problem 1443. Edges of a n-dimensional Hypercube on 26 Mar 2018 |
John D'Errico submitted Solution 1471539 to Problem 1443. Edges of a n-dimensional Hypercube on 26 Mar 2018 |
John D'Errico submitted Solution 1471534 to Problem 1444. Dots in a Circle on 26 Mar 2018 |
John D'Errico submitted Solution 1471533 to Problem 1444. Dots in a Circle on 26 Mar 2018 |
John D'Errico submitted Solution 1447302 to Problem 44480. The average of the second largest values on 22 Feb 2018 |
John D'Errico submitted Solution 1447301 to Problem 44480. The average of the second largest values on 22 Feb 2018 |
John D'Errico submitted Solution 1447299 to Problem 44480. The average of the second largest values on 22 Feb 2018 |
John D'Errico submitted Solution 1447297 to Problem 1946. Fibonacci-Sum of Squares on 22 Feb 2018 |
John D'Errico submitted Solution 1447292 to Problem 1442. Volume of a Simplex on 22 Feb 2018 |
John D'Errico submitted a Comment to Problem 1442. Volume of a Simplex Good problem, in the sense that it disallows many of the hacks used to cook a problem.
on 22 Feb 2018 |
John D'Errico submitted Solution 1447286 to Problem 1141. Volume difference between Ellipsoid and Sphere on 22 Feb 2018 |
John D'Errico submitted Solution 1447280 to Problem 1385. Perimeter on 22 Feb 2018 |
John D'Errico submitted Solution 1447279 to Problem 1385. Perimeter on 22 Feb 2018 |
John D'Errico submitted Solution 1447273 to Problem 434. Return the Fibonacci Sequence on 22 Feb 2018 |
John D'Errico submitted Solution 1447267 to Problem 434. Return the Fibonacci Sequence on 22 Feb 2018 |
John D'Errico submitted a Comment to Problem 525. Mersenne Primes No. 2047 is not a Mersenne prime. 2047=23*89, even though it is true that 2047=2^11-1.
on 22 Feb 2018 |
John D'Errico submitted Solution 1446399 to Problem 981. Find nearest prime number less than input number on 22 Feb 2018 |
John D'Errico submitted Solution 1446396 to Problem 981. Find nearest prime number less than input number on 22 Feb 2018 |
John D'Errico submitted Solution 1446394 to Problem 981. Find nearest prime number less than input number on 22 Feb 2018 |
John D'Errico submitted a Comment to Problem 981. Find nearest prime number less than input number I removed the test case where n==2, since 1 is indeed not a prime number. I also added a random test case, so the problem is not so easily cooked by knowing all the test cases.
on 22 Feb 2018 |
John D'Errico submitted Solution 1446378 to Problem 1119. sum of non-primes on 22 Feb 2018 |
John D'Errico submitted a Comment to Problem 1119. sum of non-primes I've now fixed the problem statement to be consistent.
on 22 Feb 2018 |
John D'Errico submitted a Comment to Problem 241. Project Euler: Problem 7, Nth prime Sadly, I see there are too few test cases, and the problem is too easy to cook.
on 22 Feb 2018 |
John D'Errico liked Problem 241. Project Euler: Problem 7, Nth prime on 22 Feb 2018 |
John D'Errico submitted a Comment to Problem 241. Project Euler: Problem 7, Nth prime Aw drat. I was going to submit the n'th prime problem until I saw this.
on 22 Feb 2018 |
John D'Errico submitted Solution 1446359 to Problem 44385. Extra safe primes on 22 Feb 2018 |
John D'Errico submitted Solution 1446358 to Problem 44385. Extra safe primes on 22 Feb 2018 |
John D'Errico submitted Solution 1446353 to Problem 44385. Extra safe primes on 22 Feb 2018 |
John D'Errico submitted a Comment to Solution 1278460 Tabulate could probably be made to work here, but I recall that Cody does not allow toolbox functions, and tabulate lives in the stats toolbox. I'd guess the logic is that not everyone has all toolboxes, so a solution that uses some tool that others cannot use would not be fair to those others.
on 21 Feb 2018 |
John D'Errico submitted Solution 1446315 to Problem 2736. Pernicious Anniversary Problem on 21 Feb 2018 |
John D'Errico submitted Solution 1446314 to Problem 2736. Pernicious Anniversary Problem on 21 Feb 2018 |
John D'Errico submitted Solution 1446311 to Problem 2736. Pernicious Anniversary Problem on 21 Feb 2018 |
John D'Errico submitted Problem 43642. Euclidean distance from a point to a polynomial to Community on 28 Oct 2016 |
John D'Errico submitted a Comment to Problem 43564. Calculate sin(x) without sin(x) You could at least bother to write a reference solution.
on 17 Oct 2016 |
John D'Errico submitted a Comment to Problem 43567. i forgot to use capital I No reference solution provided.
on 17 Oct 2016 |
John D'Errico submitted a Comment to Solution 553580 A very good reason why it would NOT work. You returned a double precision number. But a double can only store integers correctly as large as 2^53-1.
on 13 Oct 2016 |
John D'Errico submitted a Comment to Problem 43329. Solve expression II Note that this problem uses the word solve when it needs to say EVALUATE.
on 13 Oct 2016 |
John D'Errico submitted a Comment to Problem 43326. Solve expression I Note that this problem uses the word solve when it needs to say EVALUATE.
on 13 Oct 2016 |
John D'Errico submitted a Comment to Problem 43330. Solve expression III Note that this problem uses the word solve when it needs to say EVALUATE.
on 13 Oct 2016 |
John D'Errico liked Problem 43494. Weighted Convolution on 13 Oct 2016 |
John D'Errico received Promoter badge for Problem 43494. Weighted Convolution on 13 Oct 2016 |