Solving Speed Control in Java
The challenge
In John’s car the GPS records every s seconds the distance travelled from an origin (distances are measured in an arbitrary but …
In-depth guides, insights, and best practices for modern software engineering
In John’s car the GPS records every s seconds the distance travelled from an origin (distances are measured in an arbitrary but …
Create an application that will display the number of kilometers per liter (output) based on the number of miles per imperial gallon …
Read Article →Given a non-negative integer, return an array / a list of the individual digits in order.
Examples:
123 => [1,2,3]
1 => [1] …
Read Article →
Find the greatest common divisor of two positive integers. The integers can be large, so you need to find a clever solution.
The inputs …
Read Article →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 →