Skip to content

Commit

Permalink
Code cleanup, removing unwanted function
Browse files Browse the repository at this point in the history
  • Loading branch information
mandliya committed Jan 12, 2018
1 parent be9eb5b commit 0567717
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions leet_code_problems/count_islands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@
#include <iostream>
#include <vector>

bool is_in_grid(const std::vector<std::vector<int> >& grid, int i, int j)
{
int m = grid.size();
int n = grid[0].size();
return (i >= 0 && i < m && j >= 0 && j < n);
}

void depth_first_search(std::vector<std::vector<int> >& grid, int i, int j)
{
int m = grid.size();
Expand Down

0 comments on commit 0567717

Please sign in to comment.