@@ -0,0 +1,537 @@
+# The guess API is already defined for you.%0A# @param num, your guess%0A# @return -1 if my number is lower, 1 if my number is higher, otherwise return 0%0A# def guess(num):%0A%0Aclass Solution(object):%0A    def guessNumber(self, n):%0A        %22%22%22%0A        :type n: int%0A        :rtype: int%0A        %22%22%22%0A        L, U = 0, n + 1%0A        while L + 1 %3C U:%0A            mid = L + (U - L) / 2%0A            g = guess(mid)%0A            if g %3E 0:%0A                L = mid%0A            elif g %3C 0:%0A                U = mid%0A            else:%0A                return mid%0A

Add py solution for 374. Guess Number Higher or Lower