Problem 1974. Length of a short side
Solution Stats
Problem Comments
-
7 Comments
Show
4 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
Interesting
Grace Edlin
on 13 Oct 2022
Good question
Solution Comments
-
1 Comment
Michael
on 1 Dec 2022
good problem
-
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
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 Solvers5466
Suggested Problems
-
6537 Solvers
-
633 Solvers
-
378 Solvers
-
Sum of odd numbers in a matrix
448 Solvers
-
478 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!