Solved

Finding area of a triangle.

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

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

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

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

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

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

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

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

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

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

12 dagen ago

Solved

Find the number of diagonals in a n sided polygon.

Find the number of diagonals in a n sided polygon.

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

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

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

18 dagen ago | 0 | 2 solvers

Solved

Find the square root of x

Determine the square root of x. For example square root of 4 is 2.

19 dagen ago