Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today
19Rank
11Badges
8035Score

Paul Berglund submitted a Comment to Solution 502450

I think that this solution is perfectly legitimate. Why try to solve it "properly"? It's not like you are using eval or something like that. regexprep is a perfectly legitimate tool to use.

on 18 Sep 2014 at 2:19

Paul Berglund received ASEE Challenge Master badge

on 18 Sep 2014 at 2:08

Paul Berglund submitted Solution 502464 to Problem 753. Solitaire Cipher

on 18 Sep 2014 at 2:08

Paul Berglund submitted Solution 502463 to Problem 2573. Flipping

on 18 Sep 2014 at 1:57

Paul Berglund submitted Solution 502460 to Problem 2579. Sum of series V

on 18 Sep 2014 at 1:46

Paul Berglund submitted Solution 502457 to Problem 2578. Sum of series IV

on 18 Sep 2014 at 1:05

Paul Berglund submitted Solution 502454 to Problem 2577. Sum of series III

on 18 Sep 2014 at 0:48

Paul Berglund submitted Solution 502452 to Problem 2576. Sum of series II

on 17 Sep 2014 at 23:39

Paul Berglund submitted Solution 502335 to Problem 2575. Sum of series I

on 17 Sep 2014 at 16:40

Paul Berglund submitted Solution 496913 to Problem 2549. length of a vector

on 6 Sep 2014 at 15:48

Paul Berglund submitted a Comment to Problem 2534. Path of least resistance - Move all direction

OK, you're right about test case 2. I was wrong. But I get 6 for test case 1, not 7. The shortest path does not include upper right corner.

on 3 Sep 2014 at 2:51

Paul Berglund submitted a Comment to Problem 2534. Path of least resistance - Move all direction

I get 11 for test case 2.

on 1 Sep 2014 at 17:14

Paul Berglund submitted a Comment to Problem 2534. Path of least resistance - Move all direction

I don't understand how this works with negative elements. For example if the input matrix is [0 -1;0 0] it is possible to obtain an arbitrarily low score by going [EastWest] sufficiently many times then EastSouth.

on 30 Aug 2014 at 15:22

Paul Berglund submitted Solution 493946 to Problem 2404. Reshape a Vector

on 30 Aug 2014 at 15:03

Paul Berglund liked Problem 2442. Magnet and Iron

on 30 Aug 2014 at 14:54

Paul Berglund submitted Solution 493939 to Problem 2442. Magnet and Iron

on 30 Aug 2014 at 14:53

Paul Berglund submitted a Comment to Problem 2198. Find my birthday

The answer for '29-Feb-1970' should probably be NaN

on 23 Mar 2014

Paul Berglund received CUP Challenge Master badge

on 17 Dec 2013