## [Solved] error: src refspec main does not match

When you first try and push to a git repository, you may get the following error message: This is because you have not committed your… Read More »[Solved] error: src refspec main does not match

## How to Solve Simple Square Numbers in Golang

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 >… Read More »How to Solve Simple Square Numbers in Golang

## How to perform Function Iteration in Golang

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… Read More »How to perform Function Iteration in Golang

## Determining Integer Depth in Python

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… Read More »Determining Integer Depth in Python

## How to Reverse a singly-linked list in Python

The challenge Implement a function reverse_list that takes a singly-linked list of nodes and returns a matching list in the reverse order. Assume the presence of a… Read More »How to Reverse a singly-linked list in Python

## Calculating Simple Time Difference in Python

The challenge In this challenge, you will be given a series of times at which an alarm goes off. Your task will be to determine… Read More »Calculating Simple Time Difference in Python

## Calculating Odd/Even number of divisors in Python

The challenge Given an integer n return “odd” if the number of its divisors is odd. Otherwise, return “even”. Note: big inputs will be tested. Examples: All prime numbers have… Read More »Calculating Odd/Even number of divisors in Python

## How to Convert Integer to Whitespace format in Python

The challenge Hereinafter, [space] refers to ” “, [tab] refers to “\t”, and [LF] refers to “\n” for illustrative purposes. This does not mean that you can use these placeholders in your solution. In esoteric… Read More »How to Convert Integer to Whitespace format in Python

## How to Perform Frog Jumping in Python

The challenge You have an array of integers and have a frog at the first position [Frog, int, int, int, …, int] The integer itself… Read More »How to Perform Frog Jumping in Python

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

The challenge Write the following function: 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… Read More »How to Calculate the area of a regular N sides polygon inside a circle of radius R in Python

## How to Find the Missing Alphabets in Python

The challenge Task Given string s, which contains only letters from a to z in lowercase. A set of the alphabet is given by abcdefghijklmnopqrstuvwxyz. 2 sets of alphabets… Read More »How to Find the Missing Alphabets in Python

## How to move MySQL database to another drive

Step 1: Login to your MySQL server, enter your password when prompted: Find out where the data directory is located: Step 2: Now you can… Read More »How to move MySQL database to another drive

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

The challenge You will be given an integer array and your task is to return the sum of elements occupying prime-numbered indices. The first element… Read More »How to Find the Sum of Prime-Indexed Elements in Go

## How to Find the Longest Substring in Alphabetical Order in Python

The challenge Find the longest substring in alphabetical order. Example: the longest alphabetical substring in “asdfaaaabbbbcttavvfffffdf” is “aaaabbbbctt”. Overview: There are tests with strings up to 10 000 characters long… Read More »How to Find the Longest Substring in Alphabetical Order in Python

## Calculate the Most Frequent Weekdays in Go

The challenge What is your favourite day of the week? Check if it’s the most frequent day of the week in the year. You are… Read More »Calculate the Most Frequent Weekdays in Go

## How to Parse HTML/CSS Colors in Java

The challenge In this challenge, you parse RGB colors represented by strings. The formats are primarily used in HTML and CSS. Your task is to… Read More »How to Parse HTML/CSS Colors in Java

## Solving Simple Transposition in Java

The challenge Simple transposition is a basic and simple cryptography technique. We make 2 rows and put first a letter in Row 1, the second… Read More »Solving Simple Transposition in Java

## How to Binary to Text (ASCII) Conversion in Python

The challenge Write a function that takes in a binary string and returns the equivalent decoded text (the text is ASCII encoded). Each 8 bits… Read More »How to Binary to Text (ASCII) Conversion in Python

## How to Find the Row of the Odd Triangle in Python

The challenge Given a triangle of consecutive odd numbers: find the triangle’s row knowing its index (the rows are 1-indexed), e.g.: Note: your code should… Read More »How to Find the Row of the Odd Triangle in Python

## Solving Number Zoo Patrol in Python

The challenge Write a function that takes a shuffled list of unique numbers from 1 to n with one element missing (which can be any number including n). Return this… Read More »Solving Number Zoo Patrol in Python