Skip to content

Instantly share code, notes, and snippets.

View snarisi's full-sized avatar

Sam Narisi snarisi

View GitHub Profile
var LinkedList = function() {
}
LinkedList.prototype.addToTail = function(value) {
var newNode = new Node(value);
if (!this.tail && !this.head) {
this.tail = newNode;
this.head = newNode;
function count_Squares(arr) {
/*
don't need the memo...
the floor of the square root of the number is the number of squares up to that point
*/
for (let i = 0; i < arr.length; i++) {
let curr = arr[i].split(' ').map(str => parseInt(str, 10));
let a = curr[0];
{
"MarketType": "CBSA",
"MarketName": "Greenfield Town, MA (CBSA)",
"MarketKey": "0087FC10-16A6-E311-946A-0026B962B992",
"MarketOffices": [
{
"WebMarketUrlId": "connecticut",
"City": "Windsor",
"StateAbbrev": "CT",
"Zipcode": "6095",
/* NeXT/Open/GNUstep / macOS communication module. -*- coding: utf-8 -*-
Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2019 Free Software
Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at