Skip to content

Instantly share code, notes, and snippets.

@dgodfrey206
dgodfrey206 / Board.java
Created December 25, 2019 19:31
8-Puzzle Board.java
import java.util.ArrayList;
public class Board {
private int[][] board;
private final int n;
private int hammingDist;
private int manhattanDist;
private int blankX, blankY;
// create a board from an n-by-n array of tiles,
// where tiles[row][col] = tile at (row, col)
@alexcpn
alexcpn / CMakeLists.txt
Last active April 18, 2021 05:16
CMake for GRPC Protobuffer C++
cmake_minimum_required(VERSION 3.3)
project(CvMat)
find_package(Protobuf 3.2 REQUIRED)
if ( NOT (PROTOBUF_FOUND))
message(FATAL_ERROR "Please Compile and Install ProtoBuffer -version 3 using GRPC C++: CMake will Exit")
endif()
set(CMAKE_BUILD_TYPE Debug)
@staltz
staltz / introrx.md
Last active May 18, 2024 05:17
The introduction to Reactive Programming you've been missing