We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae135cf commit 5f173c4Copy full SHA for 5f173c4
Python/maximum-value-sum-by-placing-three-rooks-ii.py
@@ -1,4 +1,4 @@
1
-# Time: O(m * n * logk + nCr((k-1)*(2*k-1)+1), 3) * k) = O(m * n)
+# Time: O(m * n * logk + nCr((k-1)*(2*k-1)+1), k) * k) = O(m * n)
2
# Space: O(k * (m + n)) = O(m + n)
3
4
import heapq
0 commit comments