문제를 풀었습니다


Fangs of pseudo-vampire number
given a number, find all the fangs of that number. A pseudo-vampire number can have multiple of fangs. The output should be a...

3년 초과 전

문제를 풀었습니다


Find similar/related functions
The help function can be useful for getting quick assistance on a particular function. For most built-in MATLAB functions, a por...

3년 초과 전

문제를 풀었습니다


Compute the intersect point of line and plan
Compute the intersect point of line and plan. eg. line AB, the coordinate of A is (1,2,3) the coordinate of B is (-4,-5,-6...

3년 초과 전

문제를 풀었습니다


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


Create a fixed format text output
Given a short brief matrix, such as x = [1.2 2.4 3.6; 1.5 2.3 3.5; 1.35 2.35 3.65] and a label 13, create a fixed format text o...

3년 초과 전

문제를 풀었습니다


Aerodynamic load on a vehicle
Determine the aerodynamic load on a vehicle having aerodynamic drag coefficient , frontal area , moving at speed in an environm...

3년 초과 전

문제를 풀었습니다


Zigzag array
Given an vector of integers, rearrange the array so that the array looks like: [largest value, smallest value, 2nd largest valu...

3년 초과 전

문제를 풀었습니다


Pascal's Triangle
Given an interger n, return n row Pascal's Triangle.

3년 초과 전

문제를 풀었습니다


Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...

3년 초과 전

문제를 풀었습니다


encuentra el 'string', o serie, mas largo el un vector de 'strings'
Encuentra el 'string' mas largo. Si hay mas de uno del mismo tamano, elige el primero.

3년 초과 전

문제를 풀었습니다


Minimum number of children to distribute unequal cookie portions
A cruel parent wants to distribute N cookies such that it is impossible for every child to receive the same number of cookies. W...

3년 초과 전

문제를 풀었습니다


Invert a Logical Matrix
Given a logical matrix, invert it

3년 초과 전

문제를 풀었습니다


Sequence
Let S be a sequence of numbers Let Find for some , where and .

3년 초과 전

문제를 풀었습니다


Momentum Calculation
A shopping cart of mass 'm1' is traveling with velocity 'u' and collides with a second shopping cart of mass 'm2.' The two shopp...

3년 초과 전

문제를 풀었습니다


Ridge regularized linear regression
Given a predictor data matrix of size , target variable vector of size and a shrinkage factor (scalar) (ridge regularization...

3년 초과 전

문제를 풀었습니다


Calculate Percentage
Given marks obtained and total marks, calculate the percentage.

3년 초과 전

문제를 풀었습니다


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


Find distance travelled by an object starting from rest in time 't' and linear acceleration 'a' = 3t
Find distance travelled by an object starting from rest in time 't' with linear acceleration a = 3t. You are given time t as an ...

3년 초과 전

문제를 풀었습니다


Sum of Cubes
Given n, find the sum of cubes of integers till n. For example, if n = 3, then answer is 1^3 + 2^3 + 3^3 = 36.

3년 초과 전

문제를 풀었습니다


Create a column vector of n elements between a and b (both included)
Given lower limit a and an upper limit b, create a column vector of n elements inclusive of a and b. For example: a = 1, b = 4,...

3년 초과 전

문제를 풀었습니다


Caesar Cipher Shift
Given a word and its encrypted version using the caesar cipher, find the shift used.

3년 초과 전

문제를 풀었습니다


Mix it up!
Given an input string S, return a new string B, that is created by taking one character from the front and then the end iterativ...

3년 초과 전

문제를 풀었습니다


Remove elements in a vector
Given a number x and a vector y, remove all occurrences of x in y. Examples: Input1 x = 1 Input2 y = [1 2 3 5] Output ...

3년 초과 전

문제를 풀었습니다


Determine if a number is prime
A prime number is a whole number greater than 1 whose only factors are 1 and itself.

3년 초과 전

문제를 풀었습니다


Length of shortest path in a directed graph.
Given a directed graph and a start and end node in the graph, return the minimum number of hops required to reach the end node f...

3년 초과 전

문제를 풀었습니다


Caesar Cipher
Given a input word x and a shift n, encrypt the word with caesar cipher of shift n.

3년 초과 전

문제를 풀었습니다


Determine if the inputs are divisible by both 3 and 5.
Given a integer x: return true if it is divisible by both 3 and 5, return false if it is not divisible by either 3 or 5.

3년 초과 전

문제를 풀었습니다


Sum of Arithmetic Progression
Given the starting number, difference and the number of terms - find the sum of the arithmetic progression.

3년 초과 전

더 보기