Risolto


num to char
make num into char

8 mesi fa

Risolto


sum numbers to some value n
sum of numbers up to a value n

8 mesi fa

Risolto


Division
Given two numbers a and b divide them a/b

8 mesi fa

Risolto


Leftovers? Again?!
I am thinking of a positive number X. To determine what number I am thinking of, I will give you two 1xN vectors. The first ve...

oltre un anno fa

Risolto


Fangs of a vampire number
A vampire number is a number v that is the product of two numbers x and y such that the following conditions are satisfied: at ...

oltre un anno fa

Risolto


Fractal: area and perimeter of Koch snowflake
Starting from an equilateral triangle with side 's', what is the area and perimeter of Koch snowflake at n'th recursive iteratio...

oltre un anno fa

Risolto


Reversing Maximal Ascending Subsequences
Create and return a new array that contains the same elements as the input array, but with the elements within each strictly inc...

quasi 2 anni fa

Risolto


Secret Message and Acrostic
One of the simplest ways to hide a message involves utilizing uppercase letters. Given a text, collect all uppercase letters in...

quasi 2 anni fa

Risolto


Instructions Following
Complete the function follow(s) which, for a given string (containing only the letters 'f', 'b', 'l', 'r'), calculates the final...

quasi 2 anni fa

Risolto


Calculating the Union Area of Overlapping Rectangles
Calculate the area covered by a union of multiple rectangles. Each rectangle is represented by 4 integers: the first two integer...

quasi 2 anni fa

Risolto


Find the triplet
Given an array x of size n > 3 and an integer N, return the indices of three elements in the array that sum up to the given inte...

quasi 2 anni fa

Risolto


Final Stone Weight
You are given an array with weights of stones. The objective is to determine the weight of the final stone remaining after all c...

quasi 2 anni fa

Risolto


Finding the Most Frequent Letter in a Text
You are given a text containing various English letters, digits and punctuation symbols. Your task is to find the most frequentl...

quasi 2 anni fa

Risolto


Perfect shuffle
We call "perfect shuffle" the process of cutting a deck of cards into two equal halves, and then perfectly interleaving them: on...

quasi 2 anni fa

Risolto


Interval Compression
Given a set of integers, the task is to create a list of closed intervals where each interval includes its endpoints. For exampl...

quasi 2 anni fa

Risolto


Hofstadter H sequence
The Hofstadter G sequence is defined as follows: The first elements of the sequence are 0, 1, 1, 2, 3, 4, 4, 5, 5, 6. Write ...

quasi 2 anni fa

Risolto


Hofstadter G sequence
The Hofstadter G sequence is defined as follows: The first elements of the sequence are 0, 1, 1, 2, 3, 3, 4, 4, 5, 6. Write ...

quasi 2 anni fa

Risolto


Integer Persistence, Product
Let's construct a sequence as follows: is a given natural number, and is the product of the digits of . The persistence of i...

quasi 2 anni fa

Risolto


Hofstadter Female and Male sequences
The Hofstadter Female (F) and Male (M) sequences are defined as follows Write a function to compute for a given n. See http...

quasi 2 anni fa

Risolto


Spreadsheet Column Number
Spreadsheet uses an alphabetic naming system for columns, starting with 'A', 'B', 'C', etc. The column names continue like 'AB',...

quasi 2 anni fa

Risolto


Stern-Brocot Sequence
The Stern-Brocot diatomic sequence is defined as follows: The first elements of the sequence are 0, 1, 1, 2, 1, 3, 2, 3, 1, 4...

quasi 2 anni fa

Risolto


Hofstadter Q sequence
The Hofstadter G sequence is defined as follows: The first elements of the sequence are 1, 1, 2, 3, 3, 4, 5, 5, 6, 6. Write ...

quasi 2 anni fa

Risolto


Find Next Strictly Greater Element
Given an array of numbers, create a new array where each element represents the next strictly greater element to the right of th...

quasi 2 anni fa

Risolto


CamelCase to snake_case convention
The CamelCase naming convention capitalizes the first letter of each word. In snake_case convention, words are written in lowerc...

quasi 2 anni fa

Risolto


Absolute Sorting
Given an array with various numbers, your have to sort it by absolute value in ascending order. For example, for the array [-2...

quasi 2 anni fa

Risolto


Reverse Integer
You are given an integer, reverse its digits. For negative integers, the sign should remain in the front. For instance, 12340 s...

quasi 2 anni fa

Risolto


Battery Charge Indicator
Write a function called battery_charge that visually represents the charge of a battery. The function takes an integer paramete...

quasi 2 anni fa

Risolto


snake_case to CamelCase convention
The snake_case naming convention writes words in lowercase and separates them with underscores. In CamelCase convention, the fir...

quasi 2 anni fa

Risolto


Calculate the Levenshtein distance between two strings
This problem description is lifted from http://en.wikipedia.org/wiki/Levenshtein_distance. The Levenshtein distance between two...

quasi 2 anni fa

Risolto


List the dopey numbers
If vile numbers have binary representations that end with an even number of zeros (even vile), then numbers with binary represe...

quasi 2 anni fa

Carica altro