class Solution(object):

```
def findPeakElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
numLen = len(nums)
#print "numLen = ", numLen
res = 0
if (numLen == 1):
return 0
for i in range (numLen-1):
if (nums[i+1] > nums[i]):
res = i+1
return res
```