Problem 1974. Length of a short side
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Jean-Marie Sainthillier
on 9 Dec 2013
Tanya, you like triangles.
Phan Hoang Tao
on 17 Sep 2019
Good one
Gábor Csapó
on 18 Feb 2021
Nice one
AtmanP
on 3 Mar 2022
Wonder what that smallest solution was.
duc minh
on 18 Apr 2022
nice
Vinayak
on 12 Jul 2022 at 15:12
Interesting
Solution Comments
-
1 Comment
Haoran Tian
on 28 Nov 2021
easy but good
-
2 Comments
Josh Klueber
on 11 Nov 2021
easy
Isabella Stellitano
on 13 Nov 2021
Good question
-
1 Comment
john perkins
on 4 May 2021
easy!
-
1 Comment
song peng
on 19 Dec 2020
Pythagoras theorem
-
1 Comment
Cory Cunningham
on 11 Dec 2020
These are interesting
-
1 Comment
Piero Cimule
on 20 Jun 2020
a = sqrt(c^2-b^2);
-
1 Comment
EMRE DÜZ
on 20 May 2020
good question
-
3 Comments
Satyanu Bhadra
on 29 Oct 2020
this isn't a calculation!
Pen-Li (Ben) Yu
on 4 Dec 2020
lol
William Burke III
on 11 Dec 2020
what the
-
1 Comment
Raymond Watt
on 25 Nov 2017
ez
-
1 Comment
Augusto Mazzei
on 25 May 2017
test_1 a=sqrt(3) is longer than b=1
the good solution would be
a= min(sqrt(c^2 -b^2),b)
instead
-
1 Comment
Jon
on 3 Feb 2014
regexp cheat
-
1 Comment
Tanya Morton
on 29 Nov 2013
Kudos for finding this solution - it did indeed meet all the test cases, but wasn't quite what I had in mind! I will add a new test.
Problem Recent Solvers4756
Suggested Problems
-
3772 Solvers
-
894 Solvers
-
349 Solvers
-
Convert a vector into a number
550 Solvers
-
381 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!