diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6b203b7..d5ff552 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,3 +29,7 @@ ### Sagar Gurung - Github: https://github.com/SagarGi + +### Surya Shenjaya + +- Github: https://github.com/suryashen5 diff --git a/Competitive Programming/LeetCode/240. Search a 2D Matrix II.java b/Competitive Programming/LeetCode/240. Search a 2D Matrix II.java new file mode 100644 index 0000000..b3946b1 --- /dev/null +++ b/Competitive Programming/LeetCode/240. Search a 2D Matrix II.java @@ -0,0 +1,12 @@ +class Solution { + public boolean searchMatrix(int[][] matrix, int target) { + for(int i=0;i < matrix.length;i++){ + for(int j=0; j < matrix[i].length;j++){ + if(matrix[i][j]==target){ + return true; + } + } + } + return false; + } +} \ No newline at end of file