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

Learn moreOpportunities for recent engineering grads.

Apply TodaySearch Solutions

What is Size?

Size refers to the number of nodes in a parse tree. Generally speaking, you can think of size as code length.

1 – 40 of 40 previous next

Incorrect

0 Comments

Incorrect

0 Comments

97Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

87Size

0 Comments

205Size

0 Comments

126Size

0 Comments

Incorrect

0 Comments

55Size

0 Comments

65Size

0 Comments

32Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

41Size

0 Comments

Incorrect

0 Comments

41Size

0 Comments

69Size

0 Comments

72Size

0 Comments

71Size

0 Comments

80Size

0 Comments

Incorrect

0 Comments

98Size

0 Comments

1 player likes this solution

Incorrect

0 Comments

96Size

0 Comments

101Size

0 Comments

195Size

0 Comments

53Size

0 Comments

2 players like this solution

55Size

0 Comments

60Size

0 Comments

111Size

0 Comments

101Size

0 Comments

102Size

0 Comments

Incorrect

0 Comments

121Size

0 Comments

1 player likes this solution

106Size

0 Comments

116Size

0 Comments

125Size

0 Comments

Incorrect

0 Comments

129Size

4 Comments

4 Comments

Show
1 older comment

Vitaly Lavrukhin
on 23 Nov 2012

functional programming approach

Jean-Marie SAINTHILLIER
on 8 Sep 2013

Congratulations.
Honestly, I have difficulties with this kind of algorithm. I have the feeling that you only increment i or j, but at the end you check all the matrix.

Vitaly Lavrukhin
on 9 Sep 2013

Thanks, Jean-Marie. This solution uses recursive calls of the function. So all elements of the matrix are processed.
If you would like to learn more about functional programming principles, I recommend 'Functional Programming Principles in Scala' course by Martin Odersky at Coursera. It starts soon. Actually, I wrote this solution after taking the course a year ago. It is very interesting to look at the same problem from different points of view.

Jean-Marie SAINTHILLIER
on 10 Sep 2013

Thanks for your advice.

1 – 40 of 40 previous next