Skip to content

Commit e393c84

Browse files
SET
1 parent 29da59d commit e393c84

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# [Check Subset](https://www.hackerrank.com/challenges/py-check-subset/problem)"
8+
]
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": 1,
13+
"metadata": {},
14+
"outputs": [
15+
{
16+
"name": "stdin",
17+
"output_type": "stream",
18+
"text": [
19+
" 1\n",
20+
" 5\n",
21+
" 1 2 3 5 6\n",
22+
" 9\n",
23+
" 9 8 5 6 3 2 1 4 7\n"
24+
]
25+
},
26+
{
27+
"name": "stdout",
28+
"output_type": "stream",
29+
"text": [
30+
"True\n"
31+
]
32+
}
33+
],
34+
"source": [
35+
"for _ in range(int(input())):\n",
36+
" a1,l1,a2,l2=input(),set(map(int,input().split())),input(),set(map(int,input().split()))\n",
37+
" print(l1.issubset(l2))"
38+
]
39+
},
40+
{
41+
"cell_type": "markdown",
42+
"metadata": {},
43+
"source": [
44+
"# [No Idea!](https://www.hackerrank.com/challenges/no-idea/problem)"
45+
]
46+
}
47+
],
48+
"metadata": {
49+
"kernelspec": {
50+
"display_name": "Python 3",
51+
"language": "python",
52+
"name": "python3"
53+
},
54+
"language_info": {
55+
"codemirror_mode": {
56+
"name": "ipython",
57+
"version": 3
58+
},
59+
"file_extension": ".py",
60+
"mimetype": "text/x-python",
61+
"name": "python",
62+
"nbconvert_exporter": "python",
63+
"pygments_lexer": "ipython3",
64+
"version": "3.8.2"
65+
}
66+
},
67+
"nbformat": 4,
68+
"nbformat_minor": 4
69+
}

0 commit comments

Comments
 (0)