Maximum Area Rectangle
Easy Accuracy: 78.42% Submissions: 2994 Points: 2

Given length L and breadth B of N rectangles. The task is to return maximum area of the rectangle.

Example 1:

Input:
3
1 2 3 4 5 6

Output:
30

Explanation:
Area of rectangle with length 5 and 
breadth 6 is maximum, and is equal to 30.

Example 2:

Input:
2
12 3 40 5 

Output:
200

Explanation:
Area of rectangle with length 40 and 
breadth 5 is maximum, and is equal to 200.

User Task: Your task is to complete the function calculate_Area() which returns maximum area. Use area() function in Rectangle class.

Constraints:
1 <= N <= 103
1 <= L, B <= 104
1 <= Area <= 108

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.