Skip to content

Commit 20d9d8f

Browse files
committed
solved 1551 medium
1 parent f8f43d7 commit 20d9d8f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

leetcode_kuro_RnD.ipynb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8919,7 +8919,12 @@
89198919
"for i, val in enumerate(arr): \n",
89208920
" oper_cnt.add(abs(val - target))\n",
89218921
"\n",
8922-
"print(sum(oper_cnt))"
8922+
"print(sum(oper_cnt))\n",
8923+
"\n",
8924+
"\n",
8925+
"# --------------------- From discuss solutions\n",
8926+
"# https://leetcode.com/problems/minimum-operations-to-make-array-equal/discuss/1145020/JS-Python-Java-C%2B%2B-or-Easy-O(1)-1-Liner-Mathematical-Solutions-w-Explanation\n",
8927+
"# simple math solution based on algebra"
89238928
]
89248929
},
89258930
{

0 commit comments

Comments
 (0)