diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -9,7 +9,7 @@
 
 class Solution:
     def findPeakElement(self, nums: List[int]) -> int:
-        n = self.length(nums)
+        n = len(nums)
         low = 0
         high = n - 1
         if n == 1:
