Refactor almost everything

This commit is contained in:
Arkaprabha Chakraborty
2022-08-02 12:21:43 +05:30
parent ccc376aea0
commit cab1180397
39 changed files with 117 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
#include <vector>
class Solution {
private:
private:
bool binarySearch(std::vector<int> &nums, int start, int end, int target) {
while (end >= start) {
int middle = start + (end - start) / 2;
@@ -36,7 +36,7 @@ class Solution {
}
*/
public:
public:
bool searchMatrix(std::vector<std::vector<int>> &matrix, int target) {
int row = matrix.size();
int col = matrix[0].size();