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

Learn moreOpportunities for recent engineering grads.

Apply TodayRegardless of input, output the string 'yes'.

8880 correct solutions
2137 incorrect solutions

Last solution submitted on May 01, 2016

130 players like this problem

2 Comments

Jerry
on 13 Oct 2015

haha...I laugh....

1 player likes this solution

2 Comments

the cyclist
on 21 Jul 2015

There is a nifty trick for reducing what seems like the shortest possible solution. I don't really want to just state the trick, as it is fun to learn or discover on your own.
If you can't figure it out, I suggest that you submit a simple problem to Cody, and look at the solutions. (They will all be viewable to you, as the problem submitter.) Someone will use the trick, almost certainly.

1 Comment

Aarron Erbas
on 10 May 2015

oooh yes

1 Comment

Björn Skatt
on 27 Nov 2014

So wise.

2 Comments

Patricia
on 3 Dec 2013

Can somebody explain the assert function? I have never used it.

the cyclist
on 4 Dec 2013

http://www.mathworks.com/help/matlab/ref/assert.html

3 players like this solution

3 Comments

Alfonso Nieto-Castanon
on 5 Aug 2013

It seems you just have to be gentle about it ;)

Danny Murphy
on 29 Aug 2013

This is a good one!

Awadhesh Srivastava
on 8 Oct 2013

entertaining question!!

1 Comment

Ajit ranjan
on 8 Dec 2012

The test suite is just amazing.....

13 players like this solution

3 Comments

Franck Dernoncourt
on 29 Jan 2012

:)

Brandon
on 8 Jan 2013

Creative

Jan Orwat
on 10 Jun 2014

Accurate :)

25 Comments