summaryrefslogtreecommitdiff
path: root/progs/a105.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a105.py')
-rw-r--r--progs/a105.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/a105.py b/progs/a105.py
new file mode 100644
index 0000000..8bda3d4
--- /dev/null
+++ b/progs/a105.py
@@ -0,0 +1,10 @@
+def is_subset(arr1, m, arr2, n):
+ hashset = set()
+ for i in range(0, m):
+ hashset.add(arr1[i])
+ for i in range(0, n):
+ if arr2[i] in hashset:
+ continue
+ else:
+ return False
+ return True \ No newline at end of file