Your team runs a web application in AWS. For compliance reasons, your team has been tasked with migrating the entire service to a brand new AWS account. Your job is to create a documented plan for moving to the new account that the team can use to perform the migration. How do you do it?
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
/** | |
* Takes a function and an array and calls the function for | |
* each item in the array. | |
* @param f - The function to call | |
* @param arr - The array | |
*/ | |
function forEach(f, arr) { | |
} |
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
'use strict'; | |
let minCoins = (amount, index, count, denomination) => { | |
if((index + 1) > denomination.length) { | |
return count; | |
} | |
if(amount >= denomination[index]) { | |
amount -= denomination[index]; | |
count += 1; | |
} else { |
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
'use strict'; | |
// criteria: iterate through a given array, and do normal FizzBuzz things. | |
let checker = (num, divisor) => num % divisor === 0; | |
let fizzerBuzzer = (arr) => { | |
return arr.map((num) => { | |
let checkedNum = ''; | |
if(checker(num, 3)) { |
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
let x = [1,2,3,4,5]; | |
let sum = function(arr, sums) { | |
if(arr.length === 0) { | |
return sums; | |
} | |
sums += arr[0]; | |
arr.shift(); | |
return sum(arr, sums); | |
}; |
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
var graphLinks1 = [ | |
{ | |
name: "A", | |
children: ["B", "C"] | |
}, | |
{ | |
name: "B", | |
children: ["D", "G"] | |
}, | |
{ |