summaryrefslogtreecommitdiff
path: root/progs/a688.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a688.py')
-rw-r--r--progs/a688.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/a688.py b/progs/a688.py
new file mode 100644
index 0000000..ddfc18e
--- /dev/null
+++ b/progs/a688.py
@@ -0,0 +1,11 @@
+def get_Min_Squares(n):
+ if n <= 3:
+ return n;
+ res = n
+ for x in range(1,n + 1):
+ temp = x * x;
+ if temp > n:
+ break
+ else:
+ res = min(res,1 + get_Min_Squares(n - temp))
+ return res; \ No newline at end of file