Skip to content

Commit 4fb1609

Browse files
committed
daily commit - new solution
1 parent a40a315 commit 4fb1609

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

leetcode_kuro_RnD.ipynb

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8689,13 +8689,45 @@
86898689
" #return(i)"
86908690
]
86918691
},
8692+
{
8693+
"cell_type": "code",
8694+
"execution_count": 24,
8695+
"metadata": {},
8696+
"outputs": [
8697+
{
8698+
"name": "stdout",
8699+
"output_type": "stream",
8700+
"text": [
8701+
"False\n"
8702+
]
8703+
}
8704+
],
8705+
"source": [
8706+
"# https://leetcode.com/problems/valid-anagram/\n",
8707+
"\n",
8708+
"s = \"anagram\"\n",
8709+
"t = \"nagaram\"\n",
8710+
"\n",
8711+
"s = \"rat\"\n",
8712+
"t = \"car\"\n",
8713+
"\n",
8714+
"if s == t : \n",
8715+
" print('True')\n",
8716+
"else: \n",
8717+
" if sorted(s) == sorted(t): \n",
8718+
" print('True')\n",
8719+
" else : \n",
8720+
" print('False') "
8721+
]
8722+
},
86928723
{
86938724
"cell_type": "code",
86948725
"execution_count": null,
86958726
"metadata": {},
86968727
"outputs": [],
86978728
"source": [
8698-
"# https://leetcode.com/problems/majority-element-ii/"
8729+
"# https://leetcode.com/problems/majority-element-ii/\n",
8730+
"\n"
86998731
]
87008732
},
87018733
{

0 commit comments

Comments
 (0)