Blog Posts

[Solved] ZipArchive extension: disabled/not installed on Ubuntu

March 26, 2022

If you have come across the following error: ZipArchive extension: <strong>disabled/not installed</strong>


Read More

Calculating Cartesian Neighbors Distance in Golang

March 25, 2022

The challenge We have been searching for all the neighboring points in a Cartesian coordinate system.


Read More

How to Calculate Dominant Primes in Golang

March 24, 2022

The challenge The prime number sequence starts with: 2,3,5,7,11,13,17,19.... Notice that 2 is in position one.


Read More

[Solved] error: src refspec main does not match

March 23, 2022

When you first try and push to a git repository, you may get the following error message:


Read More

How to Solve Simple Square Numbers in Golang

March 22, 2022

The challenge In this challenge, you will be given a number n (n > 0) and your task will be to return the smallest square number N (N > 0) such that n + N is also a perfect square.


Read More

How to perform Function Iteration in Golang

March 21, 2022

The challenge The purpose of this challenge is to write a higher-order function returning a new function that iterates on a specified function a given number of times.


Read More

Determining Integer Depth in Python

March 20, 2022

The challenge The depth of an integer n is defined to be how many multiples of n it is necessary to compute before all 10 digits have appeared at least once in some multiple.


Read More

How to Reverse a singly-linked list in Python

March 19, 2022

The challenge Implement a function reverse_list that takes a singly-linked list of nodes and returns a matching list in the reverse order.


Read More

Calculating Simple Time Difference in Python

March 18, 2022

The challenge In this challenge, you will be given a series of times at which an alarm goes off.


Read More

Calculating Odd/Even number of divisors in Python

March 17, 2022

The challenge Given an integer n return "odd" if the number of its divisors is odd.


Read More

Calculate possibilities of throwing a coin N times in Python

March 16, 2022

The challenge In this challenge, you will be given an integer n, which is the number of times that is thrown a coin.


Read More

How to Convert Integer to Whitespace format in Python

March 15, 2022

The challenge Hereinafter, [space] refers to " ", [tab] refers to "\t", and [LF] refers to "\n" for illustrative purposes.


Read More

How to Perform Frog Jumping in Python

March 14, 2022

The challenge You have an array of integers and have a frog at the first position


Read More

How to Calculate the area of a regular N sides polygon inside a circle of radius R in Python

March 13, 2022

The challenge Write the following function: def area_of_polygon_inside_circle(circle_radius, number_of_sides): It should calculate the area of a regular polygon of numberOfSides, number-of-sides, or number_of_sides sides inside a circle of radius circleRadius, circle-radius, or circle_radius which passes through all the vertices of the polygon (such a circle is called circumscribed circle or circumcircle).


Read More

How to create an Image Host Filename Generator in Python

March 12, 2022

The challenge You are developing an image hosting website. You have to create a function for generating random and unique image filenames.


Read More

How to Find the Missing Alphabets in Python

March 11, 2022

The challenge Task Given string s, which contains only letters from a to z in lowercase.


Read More

How to move MySQL database to another drive

March 10, 2022

Step 1: Login to your MySQL server, enter your password when prompted:


Read More

How to Find the Sum of Prime-Indexed Elements in Go

March 9, 2022

The challenge You will be given an integer array and your task is to return the sum of elements occupying prime-numbered indices.


Read More

How to Find the Longest Substring in Alphabetical Order in Python

March 8, 2022

The challenge Find the longest substring in alphabetical order. Example:


Read More

Calculate the Most Frequent Weekdays in Go

March 7, 2022

The challenge What is your favourite day of the week? Check if it’s the most frequent day of the week in the year.


Read More