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
7995Score

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.

13 hours and 36 minutes ago

Paul Berglund received ASEE Challenge Master badge

13 hours and 46 minutes ago

Paul Berglund submitted Solution 502464 to Problem 753. Solitaire Cipher

13 hours and 46 minutes ago

Paul Berglund submitted Solution 502463 to Problem 2573. Flipping

13 hours and 57 minutes ago

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

14 hours and 9 minutes ago

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

14 hours and 50 minutes ago

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

15 hours and 6 minutes ago

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

16 hours and 16 minutes ago

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

23 hours and 15 minutes ago

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