maweaver
|
codepad
|
|
maweaver
|
Saved pastes by maweaver:
#include <iostream>
#include <queue>
struct Bill {
Bill(const std::string &_name, int _value) : name(_name), value(_value) { }
|
view (34 lines, 1 line of output) |
/////////////////////////////////////////////////////////////////////
//
// Sudoku Solver using Knuth's Dancing Links algorithm (DLX)
//
/////////////////////////////////////////////////////////////////////
|
view (767 lines, 23 lines of output) |
import std.stdio;
T[] permute(T)(T[] v, bool delegate(T[]) fn) {
T[] ret;
ret.length = v.length;
|
view (84 lines) |
import std.stdio;
T[] permute(T)(T[] v, bool delegate(T[]) fn) {
T[] ret;
ret.length = v.length;
|
view (90 lines, 2 lines of output) |
/////////////////////////////////////////////////////////////////////
//
// Sudoku Solver using Knuth's Dancing Links algorithm (DLX)
//
/////////////////////////////////////////////////////////////////////
|
view (776 lines, 23 lines of output) |
import std.stdio;
int bruteForceSchemey(string pat, string str, int start = 0) {
int loop(int strOff, int patOff) {
if(strOff == str.length && patOff != pat.length) {
|
view (89 lines, 27 lines of output) |