Skip to content

Commit bf9e474

Browse files
SUDO PLACEMET 2019
1 parent fdac16b commit bf9e474

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

GeeksForGeeks/Sudo Placement 2019/bit-magic/bit-magic.ipynb

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,22 +1263,26 @@
12631263
},
12641264
{
12651265
"cell_type": "code",
1266-
"execution_count": 8,
1266+
"execution_count": 6,
12671267
"metadata": {},
12681268
"outputs": [
12691269
{
1270-
"data": {
1271-
"text/plain": [
1272-
"'01'"
1273-
]
1274-
},
1275-
"execution_count": 8,
1276-
"metadata": {},
1277-
"output_type": "execute_result"
1270+
"name": "stdout",
1271+
"output_type": "stream",
1272+
"text": [
1273+
"1 2 3 4 5 6 22 33 44 22 111\n",
1274+
"121\n"
1275+
]
12781276
}
12791277
],
12801278
"source": [
1281-
"a[1::2]"
1279+
"a=list(map(int,input().split()))\n",
1280+
"xor=0\n",
1281+
"for i in range(len(a)):\n",
1282+
" for j in range(i+1,len(a)):\n",
1283+
" if a[i]^a[j]>xor:\n",
1284+
" xor=a[i]^a[j]\n",
1285+
"print(xor)"
12821286
]
12831287
},
12841288
{

0 commit comments

Comments
 (0)