Skip to content

Instantly share code, notes, and snippets.

View andyku25's full-sized avatar

Andrew andyku25

View GitHub Profile
@andyku25
andyku25 / doubly_linked_list.js
Created April 5, 2021 00:30
Example of a doubly linked list data structure with ability to append and prepend nodes and traverse to search for a specific value.
class Node {
constructor(value) {
this.value = value,
this.next = null
this.prev = null
}
}
class LinkedList {
// Set the head and tail to null as there are no nodes currently
@andyku25
andyku25 / candidates.rb
Last active March 27, 2021 04:39 — forked from NimaBoscarino/candidates.rb
W1D4 - Candidates
require 'active_support/all'
@candidates = [
{
id: 5,
years_of_experience: 4,
github_points: 293,
languages: ['C', 'Ruby', 'Python', 'Clojure'],
date_applied: 5.days.ago.to_date,
age: 26
@andyku25
andyku25 / testUpdateSpots.js
Last active March 20, 2021 00:04
Test Scheduler updateSpots()
const state = {
day: "Monday",
days: [
{
id: 1,
name: "Monday",
appointments: [1, 2, 3],
interviewers: [1, 2],
spots: 99