-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python Solved GFG POTD
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |