How to Create a Circular List in Python
The challenge
Create a Circular List
A circular list is of finite size, but can infititely be asked for its previous and next elements. This is …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Create a Circular List
A circular list is of finite size, but can infititely be asked for its previous and next elements. This is …
Read Article →You must guess a sequence and it has something to do with the number given.
x = 16
result = [1, 10, 11, 12, 13, 14, 15, 16, 2, …
Read Article →
Build a function that returns an array of integers from n to 1 where n>0.
Example : n=5 –> [5,4,3,2,1]
Take an integer n (n >= 0) and a digit d (0 <= d <= 9) as an integer. Square all numbers k (0 <= k <= n) between 0 and n. …
Create a function multiplyAll/multiply_all which takes an array of integers as an argument. This function must return another function, …
You have received the dreaded fatal: refusing to merge unrelated histories error!
You might find yourself asking one of the following questions:
Usually when you buy something, you’re asked whether your credit card number, phone number or answer to your most secret question …
Read Article →Given a number, write a function to output its reverse digits. (e.g. given 123 the answer is 321)
Numbers should preserve their sign; …
Read Article →Suppose you have 4 numbers: '0', '9', '6', '4' and 3 strings composed with them:
s1 = "6900690040"
s2 = "4690606946"
s3 …
Read Article →
What date corresponds to the nth day of the year?
The answer depends on whether the year is a leap year or not.
Write a function that …
Read Article →You probably know that some characters written on a piece of paper, after turning this sheet 180 degrees, can be read, although …
Read Article →