Solved

Finding area of a triangle.

Find the area of an equalateral triangle with sides of 3 inches,

13 days ago

Solved

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...

13 days ago

Solved

Battery Charge Indicator

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

13 days ago

Solved

Perfect shuffle

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

13 days ago

Solved

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...

13 days ago

Solved

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...

13 days ago

Solved

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...

13 days ago

Solved

Remove Unique Elements

Given a list of integers, we want to keep only the non-unique elements in this list. To do this, we need to remove all the uniqu...

13 days ago

Solved

Find the largest sum of any contiguous subarray

Given an array of N integers, find the contiguous subarray (which must contain at least one number) with the maximum sum and ret...

13 days ago

Solved

Reverse Integer

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

13 days ago

Solved

Find the number of diagonals in a n sided polygon.

Find the number of diagonals in a n sided polygon.

17 days ago

Solved

Recursive triangle area

Given triangle 1 with sides of length a, b, and c. Triangle 2 is constructed within triangle 1 by bisecting each side. Triangl...

18 days ago

Solved

Compute the Ramanujan tau function for large numbers

The Ramanujan tau function is defined by the relation where . The first few values of are 1, -24, 252, -1472, and 4830. Wr...

19 days ago

Problem

Compute the Ramanujan tau function for large numbers

The Ramanujan tau function is defined by the relation where . The first few values of are 1, -24, 252, -1472, and 4830. Wr...

19 days ago | 0 | 2 solvers