Skip to content

Commit 27ce049

Browse files
committed
2963. Count the Number of Good Partitions
1 parent 4b11537 commit 27ce049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2501-3000/2963. Count the Number of Good Partitions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ class Solution {
33
// Solution by Sergey Leschev
44
// 2963. Count the Number of Good Partitions
55

6-
// Time complexity - O(N)
7-
// Space complexity - O(N)
6+
// Time complexity: O(N)
7+
// Space complexity: O(N)
88

99
func numberOfGoodPartitions(_ nums: [Int]) -> Int {
1010
let m = 1_000_000_007

0 commit comments

Comments
 (0)