Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rxluz's full-sized avatar

Ricardo Luz rxluz

View GitHub Profile
// 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,
const tests = {
valid: '{[(())]}',
valid2: '{}',
valid3: '()',
valid4: '[]',
valid5: '{[]}',
valid6: '{[()]}',
valid7: '',
valid8: '[]{}[][]()()',
invalid0: '[{}]',
{
"categoriesSelection": [
{
"category": {
"id": 30,
"name": "234234aefdsfdsfdsf",
"description": null,
"products_total": 4
},
"productsExclusionList": []
@rxluz
rxluz / DATA_STRUCTURES_BSTImplementation.js
Last active February 5, 2019 12:47
JS Data Structures: Trees, see more at: https://medium.com/p/5dee18f68982
function BST() {
let root = null
class Utils {
static node(key) {
return { key, left: null, right: null }
}
static insertNode(node, key) {
if (!node) {
@rxluz
rxluz / DATA_STRUCTURES_hashTableSeparateChaining.js
Created January 31, 2019 10:38
JS Data Structures: Hash tables, see more at: https://medium.com/p/e3c229ecaacb
function LinkedList() {
let head = null
let size = 0
class Utils {
static node(element) {
return {
element,
next: null,
}
@rxluz
rxluz / DATA_STRUCTURES_hashTableWithLinearProbing.js
Last active January 31, 2019 10:37
JS Data Structures: Hash tables, see more at: https://medium.com/p/e3c229ecaacb
function HashTable() {
let table = []
let size = 0
class Utils {
static djb2(key) {
let hash = 5381
const keyChars = key.split('')
@rxluz
rxluz / DATA_STRUCTURES_dictionaryExample.js
Created January 30, 2019 02:12
JS Data Structures: Dictionaries/maps, see more at: https://medium.com/p/5c059d7b9e82
function Map() {
let items = {}
let size = 0
class PublicMap {
has(key) {
return key in items
}
set(key, value) {
@rxluz
rxluz / DATA_STRUCTURES_setWithoutES6.js
Last active January 29, 2019 04:47
JS Data Structures: Sets, see more at: https://medium.com/p/5c0c7e52203
function Set() {
let items = {}
let size = 0
class PublicSet {
has(item) {
return item in items
}
add(item) {
@rxluz
rxluz / DATA_STRUCTURES_doublyLinkedList.js
Last active January 29, 2019 04:46
JS Data Structures: Linked List, see more at: https://medium.com/p/29cb496d8bff
function DoublyLinkedList() {
let head = null
let tail = null
let length = 0
class Node {
constructor(element) {
this.element = element
this.prev = null
this.next = null
@rxluz
rxluz / DATA_STRUCTURES_linkedListExample.js
Last active January 29, 2019 04:45
JS Data Structures: Linked List, see more at: https://medium.com/p/29cb496d8bff
function LinkedList() {
let head = null
let length = 0
class Node {
constructor(element) {
this.element = element
this.next = null
}
}