MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

# Ned Gulley

View profile information

E-mail

Company/University

MathWorks

Personal Profile

I work on the MATLAB Central and MATLAB Interface teams. See also http://www.starchamber.com/

148Rank
1300Score

on 20 Nov 2013 at 17:13

Ned Gulley submitted a Comment to Problem 2007. Swap two numbers

I cleaned up the test.

on 20 Nov 2013 at 16:21

on 20 Nov 2013 at 16:14

I added a new test. I periodically strengthen test suites to defeat look-up table strategies.

on 19 Nov 2013 at 15:10

on 29 Oct 2013

Ned Gulley submitted a Comment to Solution 333168

Clever! If the system doesn't work properly, work around it.

on 15 Oct 2013

Ned Gulley submitted a Comment to Problem 1927. Find nth maximum

I went ahead and made the test suite change that José suggested above.

on 15 Oct 2013

on 9 Oct 2013

on 8 Oct 2013

Ned Gulley submitted a Comment to Solution 327824

An "outstanding" from Alfonso is worth two outstandings.

on 4 Oct 2013

Ned Gulley submitted a Comment to Problem 1912. Local Minima

Maybe the problem statement should specifically exclude the first and last elements?

on 4 Oct 2013

on 17 Sep 2013

on 12 Sep 2013

on 5 Sep 2013

Ned Gulley submitted a Comment to Problem 1812. Tridiagonal

I fixed the test suite so that n is used instead of d.

on 15 Aug 2013

on 14 Aug 2013

on 26 Jul 2013

on 25 Jul 2013

on 16 Jul 2013

on 15 Jul 2013

on 15 Jul 2013

on 10 Jul 2013

on 8 Jul 2013

on 8 Jul 2013

on 8 Jul 2013

Ned Gulley submitted a Comment to Solution 273246

@Disha: see http://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker.27s_Guide_to_the_Galaxy

on 8 Jul 2013

on 8 Jul 2013

on 3 Jul 2013

on 3 Jul 2013

Amazing how hard it is to get your test suite right on the first try. Thanks, and it looks like you're in the lead!

on 28 Jun 2013

on 28 Jun 2013

on 27 Jun 2013

Ned Gulley submitted a Comment to Problem 1674. How many jokers?

Hi Amitava: Could you provide an example in your problem statement? Also, as Evan says below, you should have more than one test case or it becomes a trivial matter to hard-code a particular answer.

on 24 Jun 2013

Ned Gulley submitted a Comment to Problem 162. High school cafeteria

I had assumed that "in order" meant "in the order provided". If that were the case, then [5 1 3 2 4] would return [5 3 2 1 4]. Maybe you could say you want them sorted rather than in order.

on 20 Jun 2013

Fixed the wording to reflect this. Thanks for the comments.

on 20 Jun 2013

on 19 Jun 2013

John, you put in a lot of effort here and I'd like to see this work. But as it is, the test suite doesn't actually test anything. I don't understand the problem sufficiently to fix it myself.

on 19 Jun 2013

on 14 Jun 2013

on 14 Jun 2013

I fixed the test suite so the number of parameters is correct.

on 11 Jun 2013

on 4 Jun 2013

Hi Franek: Thanks for creating a problem! It's a little ambiguous right now (see @andrea84's comment above). There is more than one answer as currently defined. Could you please clarify it?

on 3 Jun 2013

Ned Gulley submitted a Comment to Problem 1531. The rabbit problem

Hi Hussam. Thanks for the problem. The Fibonacci sequence can start different ways. Can you provide a specific example or two so there's no ambiguity?

on 30 May 2013

Ned Gulley submitted a Comment to Solution 250525

I'm not sure how you reach that conclusion. The example given says fib(5) should be 5. Your code returns 15.

on 29 May 2013

Ned Gulley submitted a Comment to Solution 250534

The error for Test 1 says "Output argument 'output' (and maybe others) not assigned". Close examination of your code reveals that when x is 1 and y is 2, you go down the first switch of the outer "if" statement, and sure enough, output never gets assigned and the function fails.

on 29 May 2013

Ned Gulley submitted a Comment to Problem 460. Replace May with April

on 28 May 2013

Ned Gulley submitted a Comment to Problem 1515. Procrustean bed

I love vector problems with classically-inspired titles! Good old Procrustes...

on 21 May 2013

I cleaned up the problem statement and fixed the first test.

on 6 May 2013

Ned Gulley submitted a Comment to Problem 1451. Symmetry of vector

I updated test case #3.

on 2 May 2013