Oops, this is not a complete answer, despite passing the tests.
Piecewise linear interpolation
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Is this triangle right-angled?
USC Spring 2012 ACM: Armageddon
GJam 2011 Africa Qual A: Maximum Loop Size
GJam 2011 Africa Qualifier C: House, maximum area rectangle
Perform Rubik's Cube Moves
PONG 003: 3-Ball Rectangle, Interactive Download
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office