- Counting Bits
nest code solution
https://www.youtube.com/watch?v=RyBM56RIWrM
formula
dp[i] = 1 + dp[i - offset]
| Create a program that takes two numbers as inputs and outputs the sum of those numbers. | |
| Write a function that takes a number as input and checks if it is even or odd. If the number is even, return true; if it is odd, return false. |
| # Load the field 'Password' from the secret 'test/MySecret' from an AWS Secrets Manager secret | |
| PASSWORD="$(aws secretsmanager get-secret-value --secret-id 'test/MySecret' --query 'SecretString' --output text | jq -r '.Password')" | |
| echo "The password is '$PASSWORD'" | |
| # The password is 'MyP@55w0rd' |
| # Load the field 'Password' from the secret 'test/MySecret' from an AWS Secrets Manager secret | |
| PASSWORD="$(aws secretsmanager get-secret-value --secret-id 'test/MySecret' --query 'SecretString' --output text | jq -r '.Password')" | |
| echo "The password is '$PASSWORD'" | |
| # The password is 'MyP@55w0rd' |
| // form | |
| // firstName | |
| // lastName | |
| // server | |
| // mongo connection | |
| // form model | |
| app.post("/form/update", (req, res) => { | |
| const body = req.params().body; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Penny Flip Game</title> | |
| <link rel="stylesheet" href="./assets/css/style.css"> | |
| </head> | |
| <body> | |
| <main> |
| // TODO: Declare any global variables we need | |
| let numberOfHeads = 0; | |
| let percentageHeads = 0; | |
| let numberOfTails = 0; | |
| let percentageTails = 0; | |
| let totalFlips = 0; | |
| const heads = document.getElementById("heads"); | |
| const headsPercent = document.getElementById("heads-percent"); | |
| const tails = document.getElementById("tails"); |
nest code solution
https://www.youtube.com/watch?v=RyBM56RIWrM
formula
dp[i] = 1 + dp[i - offset]