Cody

James

5
Rank
16
Badges
22095
Score

Activities

1 – 50 of 3,004

James submitted Solution 941523 to Problem 42922. Zero Cross

on 24 Aug 2016 at 13:44

James submitted a Comment to Solution 938316

The problem was with the following line in the error checking: st = sprintf('function y = partitions(x)\n%%%s', st); This automatically changed the first line of your script to use partitions(x) instead of partitions(n). That was done to prevent folks from using the "function ans=blahblahblah(x)" technique when that still worked, That was just a holdover that happened to trip you up. Now that that line (and the rest of the suite0 has been removed, partitions(n) should work just fine.

on 19 Aug 2016 at 11:41

James submitted a Comment to Solution 938316

Strange. The problem you were having had something to do with the error checking suite that was above the solutions. Your solution passed the error checks, but failed to actually work. Now that I have removed the error checks, your solution with partitions(n) passes. I may have to muck around with this a bit later on.

on 19 Aug 2016 at 11:38

James submitted a Comment to Solution 933408

I think you set some sort of record here with *ten* nested commands on a single line, Peng. I'm impressed.

on 9 Aug 2016 at 12:26

James submitted Solution 933177 to Problem 42918. Addition Partition

on 8 Aug 2016 at 19:35

James submitted Problem 42918. Addition Partition to Community

on 8 Aug 2016 at 19:34

James submitted Solution 930633 to Problem 42839. Identify the sequence

on 1 Aug 2016 at 18:27

James submitted Solution 930624 to Problem 42917. Nth roots of unity

on 1 Aug 2016 at 18:10

James submitted Solution 930622 to Problem 42917. Nth roots of unity

on 1 Aug 2016 at 18:10

James submitted Solution 930621 to Problem 42917. Nth roots of unity

on 1 Aug 2016 at 18:08

James submitted a Comment to Solution 925109

Today's Cody Tip of the Day: Make sure you paste your solution into the text box BEFORE you hit submit.

on 19 Jul 2016

James submitted a Comment to Solution 901588

Should not need the '=' in the 'if j<=t' statement to get the "correct" answer, but that makes the code match the solution in the test suite.

on 3 Jun 2016

James submitted a Comment to Problem 42875. Assignment Problem

You're correct, Jan. Both options give you a minimum time of 10.

on 3 Jun 2016

James submitted Solution 895407 to Problem 42856. Block average

on 25 May 2016

James submitted a Comment to Solution 891610

I had to put in a %% in the first line of the test suite to get everything working. I also added in a tolerance of 1e-10 on all of the test suites, rather than just ones with non-integer values, for those of you who were smart enough to use the filter command. Great detective work, Peng and Jan!

on 25 May 2016

1 – 50 of 3,004