Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sumit-kushwah committed Oct 9, 2021
1 parent ef7004d commit 686c73a
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions solutions/valid_sudoku.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
// problem link: https://leetcode.com/problems/valid-sudoku/

#include <bits/stdc++.h>
#include<unordered_map>
#include <unordered_set>

using namespace std;

class Solution {
public:
bool isValidSudoku(vector<vector<char>>& b) {
vector<unordered_set<char>> row(9);
vector<unordered_set<char>> col(9);
vector<unordered_set<char>> box(9);
bool isValidSudoku(vector<vector<char> >& b) {
vector<unordered_set<char> > row(9);
vector<unordered_set<char> > col(9);
vector<unordered_set<char> > box(9);

for(int i=0 ; i<9 ; i ++){
for(int j=0 ; j<9 ; j++){
Expand All @@ -21,3 +29,7 @@ class Solution {
return true;
}
};

int main() {
Solution s;
}

0 comments on commit 686c73a

Please sign in to comment.