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 d16ff4f commit 26f42ddCopy full SHA for 26f42dd
dsa-solutions/lc-solutions/0000-0099/0075-sort-colors.md
@@ -43,9 +43,9 @@ You must solve this problem without using the library's sort function.
43
44
### Constraints
45
46
-- n == nums.length
47
-- 1 <= n <= 300
48
-- nums[i] is either 0, 1, or 2.
+- $n = \text{nums.length}$
+- $1 \leq n \leq 300$
+- $\text{nums}[i] \in \{0, 1, 2\}$
49
50
### Approach
51
This problem is a variation of the popular Dutch National flag algorithm.
@@ -148,4 +148,4 @@ class Solution {
148
149
Reason: We are using a single loop that can run at most N times.
150
151
-- Space Complexity: $O(1)$ as we are not using any extra space.
+- Space Complexity: $O(1)$ as we are not using any extra space.
0 commit comments