Cody

the cyclist

149
Rank
9
Badges
3190
Score

Activities

1 – 50 of 401

the cyclist submitted a Comment to Solution 703651

No, the trick is actually fairly poor coding practice

on 18 Oct 2016

the cyclist submitted a Comment to Solution 994062

https://www.mathworks.com/matlabcentral/fileexchange/34754-calculate-size

on 5 Oct 2016

the cyclist submitted Solution 960029 to Problem 167. Pizza!

on 5 Sep 2016

the cyclist submitted a Comment to Solution 923890

It's difficult to give much of a hint without giving away the answer. The key is that your function needs to be able to accept ANY input.

on 16 Jul 2016

the cyclist submitted a Comment to Solution 903585

Changed test suite to deny this "solution"

on 14 Jun 2016

the cyclist submitted a Comment to Solution 66738

Changed test suite to deny this "solution"

on 14 Jun 2016

the cyclist submitted a Comment to Solution 14129

Changed test suite to deny this "solution"

on 14 Jun 2016

the cyclist received Leader badge for Solution 717906

on 20 Aug 2015

the cyclist submitted a Comment to Solution 703651

There is a nifty trick for reducing what seems like the shortest possible solution. I don't really want to just state the trick, as it is fun to learn or discover on your own. If you can't figure it out, I suggest that you submit a simple problem to Cody, and look at the solutions. (They will all be viewable to you, as the problem submitter.) Someone will use the trick, almost certainly.

on 21 Jul 2015

the cyclist submitted a Comment to Solution 563857

Although MATLAB does create a 2x2 matrix as an output from magic(2), that output is not a magic square.

on 27 Jan 2015

the cyclist submitted a Comment to Problem 149. Is my wife right?

Sneha, do you really want to tell your wife to get 'out'?

on 31 Oct 2014

the cyclist submitted a Comment to Solution 489566

Glad you claimed the lead!

on 22 Aug 2014

the cyclist submitted a Comment to Solution 480291

I added another test to the suite that invalidated this cheesy solution.

on 30 Jul 2014

the cyclist received Speed Demon badge for Solution 10200

on 30 Jul 2014

the cyclist received Speed Demon badge for Solution 10200

on 30 Jul 2014

the cyclist submitted a Comment to Solution 406838

New test suite invalidates this solution.

on 20 Feb 2014

the cyclist submitted a Comment to Problem 2202. Flip the bit

Added this check. (I messed it up a bit the first time I tried to do it, so sorry for some interim weirdness.)

on 20 Feb 2014

the cyclist submitted Problem 2202. Flip the bit to Community

on 20 Feb 2014

the cyclist submitted a Comment to Problem 320. Maintain shape of logical-index mask

Good suggestion. I've added a couple more tests to the suite, including one that has three columns in the logical mask.

on 13 Feb 2014

the cyclist submitted a Comment to Solution 363762

http://www.mathworks.com/help/matlab/ref/assert.html

on 4 Dec 2013

the cyclist submitted a Comment to Problem 160. So many choices

@Sumit, you are probably using a function from a toolbox (e.g. statistics toolbox) that is not available to Cody.

on 11 Sep 2013

the cyclist submitted a Comment to Solution 203610

I added a test case to nullify this "solution".

on 25 May 2013

the cyclist submitted a Comment to Solution 214423

This solution only tests for divisibility by 9, not whether the number is a Kaprekar number.

on 9 Mar 2013

the cyclist submitted a Comment to Solution 27245

Added to test suite to eliminate this "solution".

on 9 Mar 2013

the cyclist submitted Solution 214704 to Problem 151. Magic!

on 8 Mar 2013

the cyclist submitted Solution 214703 to Problem 151. Magic!

on 8 Mar 2013

the cyclist submitted Solution 214702 to Problem 151. Magic!

on 8 Mar 2013

1 – 50 of 401