Skip to content

Instantly share code, notes, and snippets.

View gleenn's full-sized avatar
💭
Yup

Glenn Jahnke gleenn

💭
Yup
  • San Diego, California
View GitHub Profile
@gleenn
gleenn / README.md
Created November 2, 2022 20:34 — forked from JCGrant/README.md
Code from "Typing the technical interview" by Kyle "Aphyr" Kingsbury - https://aphyr.com/posts/342-typing-the-technical-interview

Typing the technical interview

Originally written by Kyle "Aphyr" Kingsbury

Definitely check out the awesome blog post where this code originated. It's well worth the read!

To run:

$ ghci Solution.hs

*Main> :type solution (nil :: N6)

@gleenn
gleenn / gist:3753975
Created September 20, 2012 04:26 — forked from swannodette/gist:3217582
sudoku_compact.clj
;; based on core.logic 0.8-alpha2 or core.logic master branch
(ns sudoku
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
(defn get-square [rows x y]
(for [x (range x (+ x 3))
y (range y (+ y 3))]
(get-in rows [x y])))