Gelöst


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

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

Gelöst


Find the number of diagonals in a n sided polygon.
Find the number of diagonals in a n sided polygon.

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

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

etwa 2 Jahre vor | 0 | 2 Lösungsvorschläge

Gelöst


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

etwa 2 Jahre vor

Gelöst


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

etwa 2 Jahre vor

Gelöst


addition
x+ 1 = 13

etwa 2 Jahre vor

Gelöst


Successive zeros
Suppose n is the number of digits a number contains. Now, 12032 - is a valid n=5 digit number. But 10023 - is defined as i...

etwa 2 Jahre vor

Gelöst


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

etwa 2 Jahre vor

Gelöst


No of squares in a grid
given a m*n grid calculate the no of possible squares & rectangles on that grid. output: y=[no of rectangles , no of sqa...

etwa 2 Jahre vor

Gelöst


chess position
given the position of a chess piece in algebric notation, convert it into 8 by 8 matrix format. For example, * 'Qd5' >> [3,4]...

etwa 2 Jahre vor

Gelöst


Out-of-Place Elements Count
Determine the number of elements in a list of integers that are not in their original order after sorting the list in ascending ...

etwa 2 Jahre vor

Gelöst


List the segmented numbers
The sequence of segmented numbers begins 1, 2, 4, 5, 8, 10, 14, 15, 16. Notice that none of the terms is the sum of consecutive ...

etwa 2 Jahre vor

Gelöst


Determine if the square root is an integer.
Write code that returns true if perfect square and returns false if square root is not an integer.

etwa 2 Jahre vor

Gelöst


Remove runs of at least n consecutive NaNs
This problem is inspired by Dyuman Joshi's problem 58329. Given a row vector x and a natural number n, remove all runs of at lea...

etwa 2 Jahre vor

Gelöst


Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

etwa 2 Jahre vor

Gelöst


Count the ways to write 1/n as the sum of two unit fractions
The number 1/2 can be written as 1/3+1/6 and 1/4+1/4, and the number 1/9 can be written as 1/18+1/18, 1/12+1/36, and 1/10+1/90. ...

etwa 2 Jahre vor

Gelöst


List the ways to write 1/n as the sum of two unit fractions
Cody Problem 59841 involved counting the ways that can be written as the sum of two unit fractions (those with a numerator of 1...

etwa 2 Jahre vor

Gelöst


Calculate the Area of the Ring
You have Ring which consist of inner and outer Circles with Radius r and R which are not given but you'll be given Hprizontal ...

etwa 2 Jahre vor

Gelöst


Sequencing Odd Even numbers
Given an input value n, create a vector which contains all odd numbers & even numbers centered around mean of vector. If the me...

etwa 2 Jahre vor

Gelöst


Determine whether a number is a Gaussian prime
A Gaussian prime is a number that cannot be factored. For example, is not a Gaussian prime because it can be factored as the p...

etwa 2 Jahre vor

Gelöst


Matrix Rotation
Write a MATLAB function that rotates a given matrix by 90 degrees clockwise. The rotation should be performed in-place, without ...

etwa 2 Jahre vor

Gelöst


Palindrome Checker
Create a MATLAB function that checks whether a given string is a palindrome or not. A palindrome is a word, phrase, number, or o...

etwa 2 Jahre vor

Gelöst


Vogel-Dobbener entropy
*Vogel-Dobbener entropy* is a measure of dispersion for ordinal variables. Given an ordered list of distinct observations u_...

etwa 2 Jahre vor

Mehr laden