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

Learn moreOpportunities for recent engineering grads.

Apply TodayPaul Berglund submitted Solution 503057 to Problem 2593. Polite numbers. N-th polite number.

2 hours and 29 minutes ago

Paul Berglund submitted Solution 502810 to Problem 2597. Alternative Scoring. Create an incremental spiral.

on 19 Sep 2014 at 2:09

Paul Berglund submitted Solution 502809 to Problem 2287. Find the dimensions of a matrix

on 19 Sep 2014 at 2:07

Paul Berglund submitted Solution 502801 to Problem 2592. LocateMembership | Membership of Matrix in another matrix

on 18 Sep 2014 at 23:28

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 submitted Solution 502178 to Problem 2324. GJam 2014 Rd 1c: Train Cars

on 17 Sep 2014 at 3:59

Paul Berglund submitted Solution 502175 to Problem 2324. GJam 2014 Rd 1c: Train Cars

on 17 Sep 2014 at 1:31

Paul Berglund submitted Solution 496959 to Problem 2498. Whole Number Concatenator

on 6 Sep 2014 at 19:41

Paul Berglund submitted Solution 496953 to Problem 2501. Whole Number Un-Concatenator

on 6 Sep 2014 at 18:59

Paul Berglund submitted Solution 496946 to Problem 2495. Find the first N zeros of the 666 function

on 6 Sep 2014 at 18:36

Paul Berglund submitted Solution 496935 to Problem 2440. Text processing - Help Johnny write a letter home from camp

on 6 Sep 2014 at 17:39

Paul Berglund submitted Solution 496928 to Problem 2494. What is the nth step in Conway's Life?

on 6 Sep 2014 at 17:05

Paul Berglund submitted Solution 496927 to Problem 52. What is the next step in Conway's Life?

on 6 Sep 2014 at 17:01

Paul Berglund submitted Solution 496912 to Problem 2550. Evaluating a polynomial

on 6 Sep 2014 at 15:44

Paul Berglund submitted Solution 496911 to Problem 2558. Find out sum of all elements of given Matrix

on 6 Sep 2014 at 15:39

Paul Berglund submitted Solution 496910 to Problem 2538. Find the Next Legal Move in Reversi

on 6 Sep 2014 at 15:34

Paul Berglund submitted Solution 496642 to Problem 2534. Path of least resistance - Move all direction

on 6 Sep 2014 at 4:28

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 Solution 493962 to Problem 2431. Power Times (of the day)

on 30 Aug 2014 at 16:02

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 493950 to Problem 2539. Add one raw in given matrix as shown in example

on 30 Aug 2014 at 15:12

Paul Berglund submitted Solution 493375 to Problem 2527. Cull vector elements that contain a specified digit

on 29 Aug 2014 at 3:57

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 submitted Solution 421734 to Problem 2240. Sum the 'edge' values of a matrix

on 23 Mar 2014

Paul Berglund submitted Problem 2254. Possible Opponents Matrix for single-elimination tournament to Community

on 23 Mar 2014

Paul Berglund submitted Solution 419529 to Problem 846. Calculate the Hamming distance between two strings

on 18 Mar 2014

Paul Berglund submitted Solution 419523 to Problem 2235. Back to basics - mean of corner elements of a matrix

on 18 Mar 2014