문제를 풀었습니다


Negative matrix
Change the sign of all elements in given matrix.

9개월 전

문제를 풀었습니다


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

9개월 전

문제를 풀었습니다


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

9개월 전

문제를 풀었습니다


Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...

9개월 전

문제를 풀었습니다


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

9개월 전

문제를 풀었습니다


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

12개월 전

문제를 풀었습니다


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

12개월 전

문제를 풀었습니다


Capitalize
Capitalize the 1st letter of each input. Other letters should be lowercase. For example - a='alphaS' >> 'Alphas' a='1...

12개월 전

문제를 풀었습니다


MinMax mapping
Given a matrix, map all the elements within a given interval. For example, a=[ 2 5 10] mapped in the interval [1,2] ...

12개월 전

문제를 풀었습니다


Abelian Sandpile - 02
Generate a matrix like Abelian Sandpile where the four corner element is n. For example, n=4 [4 3 2 1 ...

12개월 전

문제를 풀었습니다


Congruent
Given two numbers, check whether they are congruent to each other or not for a particular value N.

12개월 전

문제를 풀었습니다


Sort Non-zeros
Consider 0s in a vector creates a break-point. sort all the sub-arrays created by those break points. For example, a = [3, 4, 1...

12개월 전

문제를 풀었습니다


Product of Array
Given an array of numbers. Get the product of the array.

12개월 전

문제를 풀었습니다


Remove the Zero
Given an array n, remove all zeros

12개월 전

문제를 풀었습니다


Area under the curve
Compute area under the curve specified by points stored in y, where y is in range (0,inf) and x time step is 1. note: please r...

12개월 전

문제를 풀었습니다


String count
given a string 'str', count the number of the followings - * letters * digits * white space * capital letters * smal...

12개월 전

문제를 풀었습니다


Find the sequence
Find the nth number of a sequence. Check the test suite to determine the sequence. * hint: it is closely related to familiar ...

12개월 전

문제를 풀었습니다


One-hot encoding

12개월 전

문제를 풀었습니다


Fun with matrix
Design a sample matrix as given in the test cases

12개월 전

문제를 풀었습니다


Rotate a matrix without using rot90
rotate the input square matrix by certain degrees (e.g. 270 or 450 etc.) without using rot90 or flip function. its an extension...

12개월 전

문제를 풀었습니다


Gapful numbers
If a number is divisible by the number formed by the first and last digit of that number then it is defined as a gapful number. ...

12개월 전

문제를 풀었습니다


Tribonacci Sequence
Generate the tribonacci sequence upto n

12개월 전

문제를 풀었습니다


generate the matrix
given 3 inputs e.g [2,3,4] -- generate a matrix like below -- [2 2 0 0 0 0 0 0 0; 2 2 0 0 0 0 0 0 0; 0 0 3 3 3 0 0 0 0; 0 0...

12개월 전

문제를 풀었습니다


Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them. For instance, ...

12개월 전

문제를 풀었습니다


Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.

12개월 전

문제를 풀었습니다


First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...

12개월 전

문제를 풀었습니다


ZigZag - 02
Given a matrix, return the elements that are on the Z form of the matrix. For example - a=[1,2,3,4,5; 6,7,8,9,1; 1...

12개월 전

문제를 풀었습니다


Time and Variable mapping and matching
There is a 6X5 cell array where * 1st column represents time values * 2nd and 3rd column represent variables and their value...

12개월 전

문제를 풀었습니다


No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

12개월 전

문제를 풀었습니다


Find the elements of a matrix according to a defined property.
From A = [5,2,3] and B = [1,2,3,4,5,6,7,8,9,10] produce a vector C where : C(1) is the sum of the first A(1) elements of B, ...

12개월 전

더 보기