How to Find the Largest product in a Series in Python
The challenge
Complete the greatestProduct method so that it’ll find the greatest product of five consecutive digits in the given string of …
In-depth guides, insights, and best practices for modern software engineering
Complete the greatestProduct method so that it’ll find the greatest product of five consecutive digits in the given string of …
Write a function that calculates the least common multiple of its arguments; each argument is assumed to be a non-negative integer. In …
Read Article →Write a class that, when given a string, will return an uppercase string with each letter shifted forward in the alphabet by however …
Read Article →Create a function that transforms any positive number to a string representing the number in words. The function should work for all …
Read Article →Create a function that converts the value of the String to and from Base64 using the ASCII character set.
Do not use built-in functions. …
Read Article →After a hard quarter in the office you decide to get some rest on a vacation. So you will book a flight for you and your girlfriend and …
Read Article →Given String str, return:
Write a function, called sumPPG, that takes two NBA player objects/struct/Hash/Dict/Class and sums their PPG
iverson := NBAPlayer{ …!-->
Read Article →
You will be given a number n (where n >= 1) and your task is to find n consecutive odd numbers whose sum is exactly the cube of n. …
The Pied Piper has been enlisted to play his magical tune and coax all the rats out of town.
But some of the rats are deaf and are going …
Read Article →You might know some pretty large perfect squares. But what about the NEXT one?
Complete the findNextSquare method that finds the next …
There is an array of strings. All strings contain similar letters except one. Try to find it!
find_uniq([ 'Aa', 'aaa', …
Read Article →