100-days-of-rust/Week-07/Day-44_Maximum-Edge-Of-A-Triangle
2024-09-07 09:53:21 +02:00
..
day44 Wrote program for Day 44 2024-09-07 09:53:21 +02:00
README.md Add files via upload 2023-03-23 21:14:34 -04:00

Maximum Edge of a Triangle

Create a function that finds the maximum range of a triangle's third edge, where the side lengths are all integers.

Example

nextEdge(8, 10) ➞ 17
nextEdge(5, 7) ➞ 11
nextEdge(9, 2) ➞ 10

Constraints

  • The side lengths of the triangle are positive integers.