File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 8689
8689
" #return(i)"
8690
8690
]
8691
8691
},
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
+ },
8692
8723
{
8693
8724
"cell_type": "code",
8694
8725
"execution_count": null,
8695
8726
"metadata": {},
8696
8727
"outputs": [],
8697
8728
"source": [
8698
- "# https://leetcode.com/problems/majority-element-ii/"
8729
+ "# https://leetcode.com/problems/majority-element-ii/\n",
8730
+ "\n"
8699
8731
]
8700
8732
},
8701
8733
{
You can’t perform that action at this time.
0 commit comments