Skip to content

Commit 26f42dd

Browse files
authored
Updates 0075-sort-colors.md
1 parent d16ff4f commit 26f42dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dsa-solutions/lc-solutions/0000-0099/0075-sort-colors.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ You must solve this problem without using the library's sort function.
4343

4444
### Constraints
4545

46-
- n == nums.length
47-
- 1 <= n <= 300
48-
- nums[i] is either 0, 1, or 2.
46+
- $n = \text{nums.length}$
47+
- $1 \leq n \leq 300$
48+
- $\text{nums}[i] \in \{0, 1, 2\}$
4949

5050
### Approach
5151
This problem is a variation of the popular Dutch National flag algorithm.
@@ -148,4 +148,4 @@ class Solution {
148148

149149
Reason: We are using a single loop that can run at most N times.
150150

151-
- Space Complexity: $O(1)$ as we are not using any extra space.
151+
- Space Complexity: $O(1)$ as we are not using any extra space.

0 commit comments

Comments
 (0)