How to Compute a Cube as Sums in Golang
The challenge
You will be given a number n (where n >= 1) and your task is to find n consecutive odd numbers whose sum is exactly the cube of n. …
In-depth guides, insights, and best practices for modern software engineering
You will be given a number n (where n >= 1) and your task is to find n consecutive odd numbers whose sum is exactly the cube of n. …
The Pied Piper has been enlisted to play his magical tune and coax all the rats out of town.
But some of the rats are deaf and are going …
Read Article →You might know some pretty large perfect squares. But what about the NEXT one?
Complete the findNextSquare method that finds the next …
There is an array of strings. All strings contain similar letters except one. Try to find it!
find_uniq([ 'Aa', 'aaa', …
Read Article →
Complete the function/method so that it takes a PascalCase string and returns the string in snake_case notation. Lowercase characters …
When working with color values it can sometimes be useful to extract the individual red, green, and blue (RGB) component values for a …
Read Article →Write a hashtag generator function that takes a string and returns a #HashCodeString of it.
The hashtag generator should perform the …
Read Article →Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([1, …
Read Article →
Write a regular expression that validates the gregorian date in the format “DD.MM.YYYY”
Correct date examples: …
Read Article →Write your own implementation of the built-in split function in Python.
The following rules must be adhered to:
Create a domain name validator mostly compliant with RFC 1035, RFC 1123, and RFC 2181
The following rules apply:
If you have a Java Jar file, you can run it as a service under Linux/Ubuntu.
sudo ln -s /var/www/japi-0.0.1-SNAPSHOT.jar /etc/init.d/japi
Now you can …
Read Article →Your task is to write a regular expression (regex) that will match a string only if it contains at least one valid date, in the format …
Read Article →You need to write regex that will validate a password to make sure it meets the following criteria:
You need to create a function that will validate if given parameters are valid geographical coordinates.
Valid coordinates look like the …
Read Article →ISBN-10 identifiers are ten digits long. The first nine characters are digits 0-9. The last digit can be 0-9 or X, to indicate a value …
Create a new file called Application.java and paste the following:
import javax.swing.*;
import java.net.InetAddress;
import …
Read Article →
An output in Terraform is a way to view the result of an action that has been performed, or resource that has been created.
Let’s say that you …
Read Article →The goal of this challenge is to write a function that takes two inputs: a string and a character. The function will count the number of …
Read Article →If you have just upgraded Ubuntu on your AWS g4dn instance and need to install/reinstall Cuda drivers for your Nvidia chipset, then you can run the …
Read Article →If you need to view a list of all the services that are either running or stopped (or both) on an Ubuntu server, then you can use the following …
Read Article →If you get the following error while trying to delete an image in Docker:
Error response from daemon: conflict: unable to remove repository reference …
Upgrading an Ubuntu Server is quite easy, just follow the below commands:
sudo apt-get update && sudo …
Read Article →
Write a function that takes an array of numbers (integers for the tests) and a target number. It should find two different items in the …
Read Article →