Skip to content

Instantly share code, notes, and snippets.

@ysangkok
ysangkok / smallqm.js
Created June 4, 2013 16:06
Quine-McCluskey in JavaScript
"use strict";
// from http://stackoverflow.com/a/11454049/309483
var combine = function (m, n) {
var a = m.length, c = '', count = 0, i;
for (i = 0; i < a; i++) {
if (m[i] === n[i]) {
c += m[i];
} else if (m[i] !== n[i]) {