How to “Dashatize It” in Java
The challenge
Given a variable n,
If n is an integer, Return a string with dash'-'marks before and after each odd integer, but do not begin or end the …
In-depth guides, insights, and best practices for modern software engineering
Given a variable n,
If n is an integer, Return a string with dash'-'marks before and after each odd integer, but do not begin or end the …
Write a nickname generator function, nicknameGenerator that takes a string name as an argument and returns the first 3 or 4 letters as a …
Given two arrays a and b write a function comp(a, b) (orcompSame(a, b)) that checks whether the two arrays have the “same” …
Find the total sum of internal angles (in degrees) in an n-sided simple polygon.
N will be greater than 2.
Option …
Read Article →You are given a binary tree. Implement the method findMax which returns the maximal node value in the tree.
For example, the maximum in …
Read Article →The method below is the most simple string search algorithm. It will find the first occurrence of a word in a text string.
haystack = …
If you are automating AWS resources in Terraform, then you will want to not hardcode things as much as possible.
Terraform makes it possible to pull …
Read Article →If you get the following error when trying to run some Terraform:
error creating Appstream Fleet (): InvalidRoleException: AppStream 2.0 encountered …
AWS AppStream has finally made its way into the Terraform AWS Provider.
If you are using hashicorp/aws version 3.67 or above, then you can do the …
It’s possible to stop a Goroutine by sending a value into it via a signal channel:
exit := make(chan bool)
go func() {
for {
select …
Read Article →
If you need to create an empty branch in git, you can follow one of the below options.
If you are using git version 2.27 or newer, then follow the …
Read Article →Given a lowercase string that has alphabetic characters only and no spaces, return the highest value of consonant substrings. Consonants …
Read Article →