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 10a082e commit 79d27aaCopy full SHA for 79d27aa
src/me/ramswaroop/arrays/MaxInAllSubArrays.java
@@ -17,7 +17,7 @@ public class MaxInAllSubArrays {
17
* Finds the maximum element in each and every sub-array
18
* in {@param a} of size {@param k}.
19
* <p/>
20
- * Time complexity: O(n^2)
+ * Time complexity: O(n*k), or more precisely O((n-k) * k)
21
*
22
* @param a
23
* @param k
0 commit comments