How to Sum the Two Lowest Positive Integers in C++
The challenge
Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers. No floats or …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers. No floats or …
Read Article →If you need to sort an array of objects by their property values using Javascript, then you don’t need to look further than the built-in sort …
If you need to count down a specific amount of time, say for example, when a token is set to expire, then a countdown timer will be useful.
Terraform state reflects the most up to date reference of the infrastructure.
Sometimes you may need to remove a resource from the Terraform state …
Read Article →Running terraform destroy will tear down the whole stack associated to some terraform code.
However, sometimes you might only want to remove a …
Read Article →resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" {
name = …
Read Article →
Terraform, a powerful Infrastructure as Code (IaC) tool, allows you to define and provision infrastructure resources. Properly commenting your …
Read Article →If you have Terraform reporting an error but want more information, then you can configure debug logging.
export …
Read Article →
Write a program that will calculate the number of trailing zeros in a factorial of a given number.
N! = 1 * 2 * 3 * ... * N
Be careful …
Read Article →The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being …
Read Article →If you want to rename a git branch, then you have a few options, dependent on the use-case.
git branch -a …
Read Article →
Simple, given a string of words, return the length of the shortest word(s).
The string will never be empty and you do not need to …
Read Article →