Write an algorithm to solve this brain teaser:
You have a square that is broken into four triangles, the area of three of those triangles is given. You must determine the area of the center triangle. Your function will take in 3 arguments A, B, and C. Below is an image of this problem, in this example A = 4, B = 3, and C = 2.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers31
Suggested Problems
-
Test if a Number is a Palindrome without using any String Operations
251 Solvers
-
Back to basics 8 - Matrix Diagonals
963 Solvers
-
Back to basics 19 - character types
271 Solvers
-
Find out sum of all elements of given Matrix
533 Solvers
-
Matlab Basics II - Create a vector with a repeated entry
251 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Unless I'm screwing something up, I think there are three possible answers to this question, and you're looking for the integer one? Given the answers you are looking for, A and C are always the triangles that have one full side of your square, but that's not specified in the problem statement.