문제


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

거의 2년 전 | 1 | 솔버 수: 18

문제를 풀었습니다


Card Game
This is an overly simplified and highly modified version of card game Twenty-Nine. A deck of 100 unique cards (hypothetical) ...

거의 2년 전

문제를 풀었습니다


Card games

거의 2년 전

문제를 풀었습니다


Mongean Shuffle : 2
Extension to <https://www.mathworks.com/matlabcentral/cody/problems/2479-mongean-shuffle problem 2479>: Determine the number...

거의 2년 전

문제를 풀었습니다


Mongean Shuffle
A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

거의 2년 전

문제를 풀었습니다


Array size along k-th dimension
Given an n-dimensional array M, find the size of M along the k-th dimension (1 <= k <= n), without using size(), height() or wid...

거의 2년 전

문제를 풀었습니다


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

거의 2년 전

문제


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

거의 2년 전 | 0 | 솔버 수: 11

문제


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

거의 2년 전 | 1 | 솔버 수: 11

문제


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

거의 2년 전 | 0 | 솔버 수: 17

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


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

거의 2년 전

문제


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

거의 2년 전 | 1 | 솔버 수: 12

문제


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

거의 2년 전 | 1 | 솔버 수: 15

문제


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

거의 2년 전 | 2 | 솔버 수: 22

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


x

거의 2년 전

문제


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

거의 2년 전 | 1 | 솔버 수: 21

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


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

거의 2년 전

문제를 풀었습니다


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]

대략 2년 전

문제를 풀었습니다


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

대략 2년 전

문제를 풀었습니다


Find the magnetic field in sollinoid

대략 2년 전

문제를 풀었습니다


Find the magnetic field around the wire

대략 2년 전

문제를 풀었습니다


Polygon in a unit circle

대략 2년 전

문제를 풀었습니다


Number Puzzle - 024

대략 2년 전

더 보기