Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Continually Learning (From Home)

Zaymon Antonio ZaymonFC

🏠
Continually Learning (From Home)
View GitHub Profile
View sudoku.clj
(require '[clojure.set :as set])
(defn vertical-line [board line]
(->> board (map (fn [l] (nth l line)))))
(defn vertical-lines [board]
(->> (range 9) (map (fn [line] (vertical-line board line)))))
(defn subgrids [board]
(let [board (->> board
View Floyd-Warshall-ShortestPair.cpp
// Dynamic.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <vector>
#include <algorithm>
#include <iostream>
#define INT_MAX 1000