BETA
School Problem's Submission isn't counted in score!

Submissions: 531 Accuracy:

52.92%

Maximum in Struct Array (Function Problem)
       

Given a struct array of type Height, having two elements feet and inches, your task is to complete the function findMax(), that must return the maximum height from the array in terms of inches.

Input:
The function takes two argument as input, the array of structure and an integer variable denoting the size of the array.
There will be T, test cases and for each test case the function will be called separately.

Output:
The function should return the maximum height from the array.

Constraints:
1<=T<=100
1<=N<=105
0<=Feet, Inches<=105

Example:
Input:

2
2
1 2 2 1
4
3 5 7 9 5 6 5 5
Output:
25
93

Note:The Input/Ouput format and Example given are used for system's internal purpose, and should be used by a user for Expected Output only. As it is a function problem, hence a user should not read any input from stdin/console. The task is to complete the function specified, and not to write the full code.

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Harshit Sidhwa


					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.