Skip to content

Commit

Permalink
fix uniquePaths.II cpp solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ehds authored and haoel committed Mar 18, 2019
1 parent a8bdcb8 commit 5f94d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algorithms/cpp/uniquePaths/uniquePaths.II.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ using namespace std;
int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) {
vector<vector<unsigned int>> v (row, vector<unsigned int>(col, 0));
unsigned int max=0;
for (int i=0; i<obstacleGrid.size();; i++){
for (int j=0; j<obstacleGrid[0].size();; j++){
for (int i=0; i<obstacleGrid.size(); i++){
for (int j=0; j<obstacleGrid[0].size(); j++){
if(obstacleGrid[i][j] == 1){
max = v[i][j] = 0;
} else {
Expand Down

0 comments on commit 5f94d17

Please sign in to comment.