Cody

James

4
Rank
39
Badges
26545
Score

Activities

1 – 50 of 3,527

James submitted Solution 1442371 to Problem 42460. The cake is a lie...

on 16 Feb 2018 at 15:50

James received Strings II Master badge

on 15 Feb 2018 at 15:54

James submitted a Comment to Solution 1255495

You are correct that the test suite is messed up. I just submitted one with the correct Morse Code string for '(' [which failed], and one with the incorrect substitution [which passed].

on 15 Feb 2018 at 15:31

James received Strings III Master badge

on 15 Feb 2018 at 14:08

James submitted Solution 1441026 to Problem 44059. Convex Hull Capture

on 14 Feb 2018 at 20:53

James received Cody Challenge Master badge

on 13 Feb 2018 at 18:58

James submitted Solution 1436003 to Problem 44514. Happy Free Wednesday!

on 7 Feb 2018 at 20:32

James submitted a Comment to Problem 43601. Find the sines of an isosceles triangle when given its area and height

I think there might still be some issues with the test suite, Grant. Currently, only test suites 1 and 3 have sum(arcsind(y_correct))=180 within a degree. For test suite 3, you need to take 180-arcsind(y_correct(3)) to get the sum to equal 180, but the sines of those two angles are still the same. Please let me know if I am missing something - If you take the arcsin for the current answers for problem 2 (y_correct = [0.7174 0.7174 0.8608]), you get angles in degrees of [49.84 49.84 59.41], which does not add up to 180 degrees. If you take 180-59.41 to keep the sine of angle #3 consistent, you end up with a sum greater than 180 degrees. Since this example is two 3-4-5 right triangles joined together at the 4-side (since height=4 and Area=12), I think the answer for case 2 should be [0.8 0.8 0.96].

on 1 Feb 2018 at 20:42

James received Number Manipulation I Master badge

on 23 Jan 2018 at 21:01

James submitted a Comment to Solution 1421984

I rescored this solution, but it's timing out now. While it may work on your machine, Cody needs it to run a bit faster.

on 22 Jan 2018

James submitted a Comment to Solution 1422038

I think it was a new issue with the test suite. There was a test case that was somehow commented out (X=1,Y=1) because it didn't have a blank line before it. I added %% in front of the first case in the test suite, and put the x=1;y=1 case on the next line. Your y=32 test (now test 3) works properly now. I'll rescore your other submission.

on 22 Jan 2018

James submitted a Comment to Problem 44497. It's Happy! It's Fun! It's Happy Fun Hyperball!

I originally had the points for w^2+x^2+y^2+z^2=r, as opposed to r^2. Sorry for the confusion, David...and thanks for taking care of the clarification, Tim! They're fixed now, and the problem statement has been changed a bit to hopefully clear things up.

on 16 Jan 2018

James submitted a Comment to Solution 298261

combvec is no longer usable in Cody? No more Neural Network toolbox, I guess.

on 8 Jan 2018

James submitted a Comment to Problem 782. Some Assembly Required

I've added some randomness to the test suite questions to stop the look-up tables from working properly. Thanks for the heads up on that. As you may have noticed, it's been a while since I submitted this problem!

on 8 Jan 2018

James submitted a Comment to Solution 1396533

Adel, there are some toolboxes that Cody is able to use, and some that it can't. Since this (otherwise valid) solution doesn't seem to work, it looks like the communication system toolbox is not installed for Cody. Sadly, that's something I can't control while making the problems.

on 29 Dec 2017

James submitted a Comment to Problem 44350. Breaking Out of the Matrix

I added a couple more sentences in the description to (hopefully) clear things up for people who were having the same problem you did, M.M.A.

on 28 Dec 2017

James submitted a Comment to Solution 1377971

I was going to suggest a minimum time for your toc to help prevent look-up tables, but you already implemented it. Nice job!

on 13 Dec 2017

James submitted a Comment to Solution 1377971

Good problem. However, you might want to try some values in between the powers of 10 (like N=50000, for example) so a cheat like this doesn't work.

on 12 Dec 2017

James submitted a Comment to Problem 44382. Parse me a Lisp

I think another test case with multiple expressions would be equally useful. Even something as simple as (+ 1 (* 2 3) 4) would prevent some of the look-up solutions. Make some of those values random, and it will work even better.

on 11 Dec 2017

James submitted a Comment to Solution 1312667

Nice. I was trying to figure out how to use strtok, but couldn't quite come up with it.

on 11 Dec 2017

1 – 50 of 3,527