Skip to content

Commit 5f8eaac

Browse files
committed
chore: add tc and sc
1 parent ddb36b6 commit 5f8eaac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

maximum-subarray/tolluset.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* TC: O(n)
3+
* SC: O(1)
4+
* */
15
function maxProduct(nums: number[]): number {
26
const n = nums.length;
37

0 commit comments

Comments
 (0)