Skip to content

Commit 1c50a56

Browse files
committed
add complexity
1 parent cd53256 commit 1c50a56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unique-paths/delight010.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
class Solution {
2+
// Time complexity O(MN)
3+
// Space complexity O(MN)
24
func uniquePaths(_ m: Int, _ n: Int) -> Int {
35
let column = Array(repeating: 1, count: n)
46
var grid: [[Int]] = Array(repeating: column, count: m)

0 commit comments

Comments
 (0)