Movatterモバイル変換


[0]ホーム

URL:


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

Commitc6b7be3

Browse files
Update 329-Longest-Increasing-Path-in-a-Matrix.c
1 parent516d57f commitc6b7be3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎c/329-Longest-Increasing-Path-in-a-Matrix.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
Given an m x n integers matrix, return the length of the longest increasing path in matrix.
3+
Time; O(n*m)
4+
Space; O(n*m)
5+
6+
*/
7+
18
intmax(inta,intb) {
29
returna>b?a:b;
310
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp