I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
// recursive reimplementation of JSON.stringify | |
var stringifyJSON = function(obj) { | |
// null | |
if (obj === null) { | |
return "null"; | |
} | |
// unstringifiable - functions and undefined | |
if (obj === undefined || obj.constructor === Function) { return; } |
This file has been truncated, but you can view the full file.
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
{ | |
"APIGatewayServiceRolePolicy": { | |
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy", | |
"AttachmentCount": 0, | |
"CreateDate": "2019-10-22T18:22:01+00:00", | |
"DefaultVersionId": "v6", | |
"Document": { | |
"Statement": [ | |
{ |
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
{ | |
"AWSAccountActivityAccess": { | |
"Arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess", | |
"AttachmentCount": 0, | |
"CreateDate": "2015-02-06T18:41:18+00:00", | |
"DefaultVersionId": "v1", | |
"Document": { | |
"Statement": [ | |
{ | |
"Action": [ |
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
import sys | |
# The way this worksheet seems to work is: | |
# A = taxes you would pay if it was just income | |
# B = calculate taxes on capital gains, using the capital gains tax rate schedule, BUT skip the first X dollars of the rate schedule, where X is your income | |
# total taxes = A + B | |
def income_tax (amt): | |
taxes = 0.0 | |
lower_end = 0 |