This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
#include<vector> | |
#define SIZE 4 | |
#define debug(x) cout<< #x << " = "<< x <<endl | |
#define swap(typ,A,B) { typ temp;temp=B; B=A;A=temp;} | |
using namespace std; | |
vector <int> permset; | |
string flags; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
#include<vector> | |
#include<algorithm> | |
using namespace std; | |
int main(){ | |
int n; | |
char c; | |
vector < string > next, current; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
using namespace std; | |
string deleteKthCharacter(string str, int k){ | |
return str.erase(k, 1); | |
} | |
void permute( string dest, string source, int len){ | |
if( dest.length() == len){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int sudoku[9][9],ptr[162],xstart[9]={0,3,6,0,3,6,0,3,6}, ystart[9]={0,0,0,3,3,3,6,6,6}; | |
int valid(){ | |
int valid=1; | |
int hashtable[10]; | |
for(int i=0;i<9;i++){ | |
for(int j=0;j<9;j++){ | |
for(int k=j+1;k<9;k++){ | |
if(sudoku[i][j]==0) continue; |
NewerOlder