Skip to content

Instantly share code, notes, and snippets.

@jharris-code
jharris-code / graph_adjacency_list.js
Last active January 8, 2019 20:52
Directed Graph Javascript Implementation
//Space Complexity: O(V + E)
class Graph {
constructor() {
this.vertices = new Map();
}
//O(V) time complexity of Map.prototype.set
addVertex(v) {
this.vertices.set(v, [])
}
@jharris-code
jharris-code / linkedlist.js
Last active January 14, 2019 18:51
JavaScript Linked List Implementation
class Node {
constructor(data) {
this.data = data;
this.next = null;
}
}
class LinkedList {
constructor() {
this.head = null;
pragma solidity ^0.4.0;
contract WolframPocV1 {
address private owner;
struct Work {
bytes32 title;
address validator;
uint baselineUsers;
uint validatedUsers;
0xfb671a57270318f595eb2844aeb6ca82599eb76d
0x60d8734a039616163d84749ba10c9492f876928e
@jharris-code
jharris-code / rinkeby-address
Created October 13, 2017 19:31
testnet rinkeby
0x9f24ff18549A8B41C06a5fC732a2b90d459C249c