A résolu


Easy Sequences 2: Trigonometric function with integral input and output
The function 'F', defined as: , will always return an integer if the input is a natural number (in radian...

presque 2 ans il y a

Problème


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

presque 2 ans il y a | 0 | 10 solveurs

Problème


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

presque 2 ans il y a | 1 | 11 solveurs

Problème


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

presque 2 ans il y a | 0 | 16 solveurs

A résolu


Sequence
Let S be a sequence of numbers Let Find for some , where and . Update - test suite cleaned up on 2-9-22

presque 2 ans il y a

A résolu


Sum of 2 numbers in array
Given an array and a target sum, return true if any 2 numbers in the array sum up to the given target sum. Both numbers cannot h...

presque 2 ans il y a

A résolu


Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

presque 2 ans il y a

A résolu


Replace all zeros and NaNs in a matrix with the string 'error'
Given a numeric input matrix A, possibly containing some zero values and some NaNs, replace any occurrences of zero or NaN with ...

presque 2 ans il y a

A résolu


Compute the sum of distances from a point to the sides of an equilateral triangle
Write a function to compute the sum of the (shortest) distances from a point inside an equilateral triangle to the sides of the ...

presque 2 ans il y a

Problème


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

presque 2 ans il y a | 1 | 11 solveurs

Problème


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

presque 2 ans il y a | 1 | 14 solveurs

Problème


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

presque 2 ans il y a | 2 | 21 solveurs

A résolu


QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a standard U.S. QWERTY keyboard and it...

presque 2 ans il y a

A résolu


x

presque 2 ans il y a

Problème


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

presque 2 ans il y a | 1 | 20 solveurs

A résolu


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

presque 2 ans il y a

A résolu


Clockwise or Counterclockwise
Given a list of 2-d points defining the vertices of a polygon, determine whether these points are sorted clockwise. The input...

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


Prime numbers between a , b.
Find all prime number between a & b (including a and b). example: a=100 b=120 y= [101 103 107 109 113]

presque 2 ans il y a

A résolu


Apply a function array to an array of numbers
It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

presque 2 ans il y a

A résolu


Find the magnetic field in sollinoid

presque 2 ans il y a

A résolu


Find the magnetic field around the wire

presque 2 ans il y a

A résolu


Polygon in a unit circle

presque 2 ans il y a

A résolu


Number Puzzle - 024

presque 2 ans il y a

A résolu


Number Puzzle - 023

presque 2 ans il y a

A résolu


Number Puzzle - 025

presque 2 ans il y a

A résolu


Number Puzzle - 026

presque 2 ans il y a

A résolu


Number Puzzle - 027

presque 2 ans il y a

A résolu


Number Puzzle - 028

presque 2 ans il y a

A résolu


Number Puzzle - 029

presque 2 ans il y a

Charger plus