-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DRAFT]. Solve LeetCode #74 'Search a 2D Matrix' [Medium].
- Loading branch information
1 parent
589e639
commit d55636a
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
LeetCode/src/LeetCode.Challenges/Problems0XX/P074_Search2DMatrix/Solution.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace LeetCode.Challenges.Problems0XX.P074_Search2DMatrix; | ||
|
||
public static class Solution | ||
{ | ||
public static bool SearchMatrix(int[][] matrix, int target) | ||
{ | ||
// TODO: implement. | ||
|
||
throw new NotImplementedException(); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...Code/tests/LeetCode.Challenges.UnitTests/Problems0XX/P074_Search2DMatrix/SolutionTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using FluentAssertions; | ||
using LeetCode.Challenges.Problems0XX.P074_Search2DMatrix; | ||
using Shouldly; | ||
using Xunit; | ||
|
||
namespace LeetCode.Challenges.UnitTests.Problems0XX.P074_Search2DMatrix; | ||
|
||
public class SolutionTests | ||
{ | ||
[Fact] | ||
public void Given_When_Then() | ||
{ | ||
var action = () => Solution.SearchMatrix([[1, 2], [3, 4], [5, 6]], 4); | ||
action.Should().Throw<NotImplementedException>(); | ||
} | ||
} |