Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 27ce049

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /