This file contains 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
version: "3" | |
services: | |
app: | |
build: . | |
ipc: host | |
hostname: let-me-in | |
container_name: welcome | |
volumes: | |
- ./src:/app/src |
This file contains 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 circuitsOutput(circuitsExpression) { | |
// Write your code here | |
let output = []; | |
let stack = []; | |
let operations = new Set(['&', '|', '!']); | |
let values = new Set([0, 1]); | |
let circuit, frame, value; | |
for (let i = 0; i < circuitsExpression.length; i++) { |
This file contains 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 circuitsOutput(circuitsExpression) { | |
// Write your code here | |
let output = []; | |
let opStack = []; | |
let values = []; | |
let currEl; | |
let frame; | |
let frameOutput = null; | |
let bracketValues = []; |
This file contains 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
/** | |
* @param {string} beginWord | |
* @param {string} endWord | |
* @param {string[]} wordList | |
* @return {number} | |
*/ | |
var ladderLength = function(beginWord, endWord, wordList) { | |
if (!wordList.includes(endWord)) return 0; | |
const posLetters = {}; |
This file contains 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
// n-queens | |
function getNQueens (n) { | |
let workQueue = []; | |
let solutions = []; | |
for (let col = 0; col < n; col++) { | |
workQueue.push([col]); | |
} | |
This file contains 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 longestChain(words) { | |
let sortedWords = words.sort((a, b) => b.length - a.length); | |
let wordSet = new Set(sortedWords); | |
let longestChain = 0; | |
function funcRecur(wordRecur, count) { | |
// console.log('wordRecur: ', wordRecur, ' count: ', count); | |
if (wordRecur.length <= 1) { |
This file contains 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
({ | |
className: 'import-csv', | |
FILE_TO_PROCESS: null, | |
FILE_CONTENTS: null, | |
PAYLOAD: null, | |
TIMEPERIOD_LEAF_INTERVAL: null, | |
REFRESH_PAGE: false, | |
COMMITTED_COUNT: 0, | |
RECALCULATED_COUNT: 0, |