I hereby claim:
- I am film42 on github.
- I am film42 (https://keybase.io/film42) on keybase.
- I have a public key whose fingerprint is CF06 2F6F 984C 0FA7 F955 A9D4 B42B B29C 5E42 9824
To claim this, I am signing this object:
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace WindowsFormsApplication1 { | |
class SimplexSolver { | |
private int[] N; // Indicies of non-basic variables |
(ns euler.euler-11 | |
(:require [clojure.string :as s])) | |
(def grid-data | |
"Open data from file" | |
(slurp "files/11.txt")) | |
(defn- get-grid | |
"Get the matrix from the slurped text. Break on new lines, then split and parse for Ints" | |
[] |
(ns rain-topology) | |
;; An Interview Question from Jane Street: | |
;; Given some topology, assume it rained and settled, | |
;; return a new array of the collected rain fall. | |
;; _ | |
;; _| | _ | |
;; _| | _| | | |
;; | |_| | | |
;; |
#include <iostream> | |
#include <vector> | |
#include <list> | |
template<typename T, typename V> | |
T map(T list, std::function<V (V)> fn) { | |
T new_list; | |
for(V& value : list) { | |
new_list.push_back( fn(value) ); | |
} |
// | |
// knn.h | |
// k_nearest_neighbor | |
// | |
// http://burakkanber.com/blog/machine-learning-in-js-k-nearest-neighbor-part-1/ | |
// | |
// Created by Garrett Thornburg on 8/1/14. | |
// Copyright (c) 2014 gt. All rights reserved. | |
// |
auto pi_series = []( long limit ){ | |
return rxcpp::observable<>::range(1, limit) | |
.map([](int k) { | |
return ( k % 2 == 0 ? -4 : 4 ) / ( long double )( ( 2 * k ) - 1 ); | |
}) | |
.sum() | |
.as_dynamic(); | |
}; |
#include <iostream> | |
#include <vector> | |
#include <fstream> | |
#include <string> | |
#include <cmath> | |
#include "functional.h" | |
#include "graph.h" | |
// DATA PARSING |
#include <vector> | |
#include <map> | |
namespace postal { | |
template< class T > | |
class broker { | |
public: | |
typedef std::vector< std::function< void ( T ) > > FuncVector; |
I hereby claim:
To claim this, I am signing this object:
public class SpiralMatrix { | |
public static void spiralPrint( int[][] matrix ) { | |
int height = matrix.length; | |
int width = matrix[0].length; | |
int currCol = 0; | |
int currRow = 0; |