@@ -0,0 +1,571 @@
+# Time:  O(sqrt(c) * logc)%0A# Space: O(1)%0A%0A# Given a non-negative integer c, your task is to decide%0A# whether there're two integers a and b such that a2 + b2 = c.%0A#%0A# Example 1:%0A# Input: 5%0A# Output: True%0A# Explanation: 1 * 1 + 2 * 2 = 5%0A# Example 2:%0A# Input: 3%0A# Output: False%0A    %0Aclass Solution(object):%0A    def judgeSquareSum(self, c):%0A        %22%22%22%0A        :type c: int%0A        :rtype: bool%0A        %22%22%22%0A        for a in xrange(int(math.sqrt(c))+1):%0A            b = int(math.sqrt(c-a**2))%0A            if a**2 + b**2 == c:%0A                return True%0A        return False%0A

Create sum-of-square-numbers.py