Test case details

Preparation Code

const a = Math.floor(Math.random() * 100); const b = Math.floor(Math.random() * 100)

Test cases

Test #1

Math.hypot(a, b);

Test #2

Math.sqrt(a * a + b * b);

Test #3

Math.sqrt(a ** 2 + b ** 2);

Test #4

Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));