Skip to content

Instantly share code, notes, and snippets.

@joelmm1
joelmm1 / js_linked_list.js
Created January 10, 2023 08:45 — forked from bradtraversy/js_linked_list.js
JS Linked List Class
// Construct Single Node
class Node {
constructor(data, next = null) {
this.data = data;
this.next = next;
}
}
// Create/Get/Remove Nodes From Linked List
class LinkedList {
@joelmm1
joelmm1 / stdev.js
Created August 13, 2017 10:36 — forked from hanksudo/stdev.js
Standard deviation(STDEV) with JavaScript
var stdev = function(arr) {
var n = arr.length;
var sum = 0;
arr.map(function(data) {
sum+=data;
});
var mean = sum / n;