We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Minimum Height Triangle
Minimum Height Triangle
Sort by
recency
|
365 Discussions
|
Please Login in order to post a comment
"This problem is an interesting challenge in computational geometry! I love how geometry can solve real-world issues.Spotify premium Apk
{ decimal areaDecimal = (decimal)area; int height = (int)(2 * (areaDecimal / trianglebase)); if (height == 0) { return height + 1 bank; } else if (areaDecimal % trianglebase == 0) { return height; } else return height + 1; }
Fed up with legacy solutions that do not perform all your business tasks? Office Power can automate recurring business tasks through Power Automate. power automate consulting
JS solution
function lowestTriangle(trianglebase, area) { return Math.ceil(2 * area / trianglebase); }
This problem seems like an interesting challenge in computational geometry! cricketbuzz9