summaryrefslogtreecommitdiff
path: root/progs/a266.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a266.py')
-rw-r--r--progs/a266.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/a266.py b/progs/a266.py
new file mode 100644
index 0000000..5712284
--- /dev/null
+++ b/progs/a266.py
@@ -0,0 +1,8 @@
+def min_Num(arr,n):
+ odd = 0
+ for i in range(n):
+ if (arr[i] % 2):
+ odd += 1
+ if (odd % 2):
+ return 1
+ return 2 \ No newline at end of file