[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
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
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
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
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
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
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
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
The challenge In this challenge, you will be given an integer n, which is the number of times that is thrown a coin. You will have… Read More »Calculate possibilities of throwing a coin N times 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
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
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
The challenge You are developing an image hosting website. You have to create a function for generating random and unique image filenames. Create a function… Read More »How to create an Image Host Filename Generator 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
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
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
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
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
The challenge In this challenge, you will be given a string with brackets and an index of an opening bracket and your task will be… Read More »Return Index of Matching Closing Bracket in Go
You can use the AWS CLI to presign URLs so that objects in S3 can be shared publicly even if they are set as private.… Read More »How to Presign an S3 URL in AWS using AWS CLI
If you use aria2c to download files using the command-line, then you can also use it to download using multiple connections. -x, –max-connection-per-server= … Read More »How to Download using Aria2c with Multiple Connections
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
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
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
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
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