문제를 풀었습니다


Solve the logic
logic(1) = -4 logic(2) = -8 logic(3) = -9 logic(4) = 4 logic(5) = 95 logic(6) = 690

2년 초과 전

문제를 풀었습니다


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

2년 초과 전

문제를 풀었습니다


Word with Highest Frequency
Write a MATLAB function that takes in a string and returns the word with the highest frequency in the string. The function shoul...

2년 초과 전

문제를 풀었습니다


Check for armstrong number
Given a number, check if it is an armstrong number. Eg: n = 371 Output: 1 Eg: n = 75 Output: 0

2년 초과 전

문제를 풀었습니다


Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

2년 초과 전

문제를 풀었습니다


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

2년 초과 전

문제를 풀었습니다


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

2년 초과 전

문제


Find the altitudes of a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the coord...

2년 초과 전 | 2 | 솔버 수: 6

문제를 풀었습니다


2行2列の行列の行列式を求めてみよう
ある2行2列の行列の入力に対して、行列式を出力してください。 例えば、入力が(1,2; 3,4)のとき、出力は1*4-3*2で-2となります。

2년 초과 전

문제를 풀었습니다


ismember: Enhanced Time Performance for 'rows' - Speed Scoring (90% savings)
The Challenge is to perform very fast the 'ismember' function for a long and wide array. The data is small integer representi...

2년 초과 전

문제를 풀었습니다


ismember: Enhanced Performance for 'rows' and width - Speed Scoring (66% savings)
The Challenge is to perform very fast the 'ismember' function for a long and wide array. The width of the array is expanded fro...

2년 초과 전

문제를 풀었습니다


Unique: Enhanced Performance - Large and Wide Array - Speed Improvement (66% savings)
The Challenge is to perform very fast unique function for a long and wide array. The data is small integer representing data ...

2년 초과 전

문제를 풀었습니다


Unique: Enhanced Performance - Avoiding Memory Crash
The Challenge is to create the unique array for a long and wide array. Difficulties are that the normal unique(a,'rows') func...

2년 초과 전

문제를 풀었습니다


Is 3D point set Co-Planar?
This Challenge is to determine if four 3D integer points are co-planar. Given a 4x3 matrix representing four x,y,z integer poin...

2년 초과 전

문제를 풀었습니다


Unique - Very Very Large Numbers
Given a vector column, with some very large numbers, create the ascending sort and unique vector. *Input:* A (column vector)...

2년 초과 전

문제를 풀었습니다


Calculate the sum of first x natural numbers
Calculate the sum of first x natural numbers for example if n=10 output =1+2+..+10=55

2년 초과 전

문제를 풀었습니다


Seperate array to small section according to its index position
Given a integer n, we can generate a sequence [0,1,2,3,4,..., 2^n-1], then we separate it to two sequence according to their ind...

2년 초과 전

문제를 풀었습니다


Sort Reversal
There are n index cards in a row, with n distinct integers written on them (one number per card) so that the numbers are sorted ...

2년 초과 전

문제


Compute the Sisyphus sequence
A recent article in the New York Times featured the Online Encyclopedia of Integer Sequences, founded by Neil J.A. Sloane. One o...

2년 초과 전 | 0 | 솔버 수: 6

문제를 풀었습니다


Pattern find
FInd the pattern x = 3; \y=1558 x = 10; \y= 2657548

2년 초과 전

문제를 풀었습니다


Draw "T" inside a Zero Matrix
Given a x-by-x matrix filled with zeros (x> 2). Use 1 to draw a letter "T" into it! Like this: x = 5, y = 1 1 1 1 1 0 0 1 0 0...

2년 초과 전

문제를 풀었습니다


Median filter over three values
Implement 1-D median filter over input vector x as described: Moving window size is 3 Output is middle/central value in moving...

2년 초과 전

문제를 풀었습니다


Finding valleys
You have a vector of altitudes (units are arbitrary) and need to find the depths of all the valleys. You also need to determine ...

2년 초과 전

문제를 풀었습니다


fractal circles
Create a fractal with circles using the same process as the Sierpinski triangle (https://en.wikipedia.org/wiki/Sierpinski_trian...

2년 초과 전

문제를 풀었습니다


balance vector
Given a non-empty vector x with integer elements. x shall be called balance vector if one can split the elements of x into two g...

2년 초과 전

문제를 풀었습니다


Musical Note Interval 1 - Diatonic Scale
Assuming a simple diatonic C scale, calculate the interval (integer) between two notes (provided as strings). By applying number...

2년 초과 전

문제를 풀었습니다


Determine connected components of a graph
Adjacency matrix of an undirected graph is given. Return the number of connected components in the graph.

거의 3년 전

문제를 풀었습니다


How many apples
You have x apples I take from you y apples now how many apples you have ?

거의 3년 전

문제를 풀었습니다


Calculate the square root
Given an input integer x, calculate the square root without using the sqrt function.

거의 3년 전

문제를 풀었습니다


Korselt's Criterion
A composite integer n (n>=2) divides b^n-b, i.e. mod(b^n-b,n)==0, for all integers b if and only if n is square-free (doesn't ha...

거의 3년 전

더 보기