This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Get all candidates by job id | |
// GET https://harvest.greenhouse.io/v1/candidates?job_id=87752 | |
{ | |
[ | |
"name": 'Selena', | |
"applications": [ | |
{ "id": 69103370, | |
"jobs": [ | |
{ | |
"id": 87752, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tests = { | |
valid: '{[(())]}', | |
valid2: '{}', | |
valid3: '()', | |
valid4: '[]', | |
valid5: '{[]}', | |
valid6: '{[()]}', | |
valid7: '', | |
valid8: '[]{}[][]()()', | |
invalid0: '[{}]', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"categoriesSelection": [ | |
{ | |
"category": { | |
"id": 30, | |
"name": "234234aefdsfdsfdsf", | |
"description": null, | |
"products_total": 4 | |
}, | |
"productsExclusionList": [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function BST() { | |
let root = null | |
class Utils { | |
static node(key) { | |
return { key, left: null, right: null } | |
} | |
static insertNode(node, key) { | |
if (!node) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LinkedList() { | |
let head = null | |
let size = 0 | |
class Utils { | |
static node(element) { | |
return { | |
element, | |
next: null, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function HashTable() { | |
let table = [] | |
let size = 0 | |
class Utils { | |
static djb2(key) { | |
let hash = 5381 | |
const keyChars = key.split('') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Map() { | |
let items = {} | |
let size = 0 | |
class PublicMap { | |
has(key) { | |
return key in items | |
} | |
set(key, value) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Set() { | |
let items = {} | |
let size = 0 | |
class PublicSet { | |
has(item) { | |
return item in items | |
} | |
add(item) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function DoublyLinkedList() { | |
let head = null | |
let tail = null | |
let length = 0 | |
class Node { | |
constructor(element) { | |
this.element = element | |
this.prev = null | |
this.next = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LinkedList() { | |
let head = null | |
let length = 0 | |
class Node { | |
constructor(element) { | |
this.element = element | |
this.next = null | |
} | |
} |
NewerOlder