Skip to content

Commit

Permalink
Create May-18.py
Browse files Browse the repository at this point in the history
Python Solved GFG POTD
  • Loading branch information
Hunterdii authored May 18, 2024
1 parent e778671 commit 78c3e62
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions May 2024 GFG SOLUTION/May-18.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#User function Template for python3
from typing import List

class Solution:
def findPeakElement(self, a: List[int]) -> int:
return max(a)

#{
# Driver Code Starts
#Initial Template for Python 3

if __name__ == '__main__':
T = int(input())
for i in range(T):
n = int(input())
a = list(map(int, input().split()))
ob = Solution()
ans = ob.findPeakElement(a)
print(ans)

# } Driver Code Ends

0 comments on commit 78c3e62

Please sign in to comment.