Feeds
문제를 풀었습니다
Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.
5개월 전
문제를 풀었습니다
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
5개월 전
문제를 풀었습니다
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
5개월 전
문제를 풀었습니다
Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
5개월 전
문제를 풀었습니다
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
5개월 전
문제를 풀었습니다
De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...
5개월 전
문제를 풀었습니다
Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
5개월 전
문제를 풀었습니다
Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...
5개월 전
문제를 풀었습니다
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
5개월 전
문제를 풀었습니다
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
5개월 전
문제를 풀었습니다
Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...
5개월 전
문제를 풀었습니다
Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]
5개월 전
문제를 풀었습니다
Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...
5개월 전
문제를 풀었습니다
Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...
5개월 전
문제를 풀었습니다
Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...
5개월 전
문제를 풀었습니다
Remove entire row and column in the matrix containing the input values
Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...
5개월 전
문제를 풀었습니다
remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...
5개월 전
문제를 풀었습니다
Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...
5개월 전
문제를 풀었습니다
Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...
5개월 전
문제를 풀었습니다
Remove a specific column with min value
Remove the column that contain the min value in the matrix? If you like the problem, please give it a like:)
5개월 전
문제를 풀었습니다
Remove a specific column with max value
Remove the column that contain the max value in the matrix? If you like the problem, please give it a like:)
5개월 전
문제를 풀었습니다
Remove a specific row with min value
Remove the row that contain the min value in the matrix? If you like the problem, please give it a like:)
5개월 전
문제를 풀었습니다
Remove a specific row with max value
Remove the row that contain the max value in the matrix? If you like the problem, please like it :)
5개월 전
문제를 풀었습니다
Sum of series IX
What is the sum of the following sequence: Σ 1/k! for k=1...n for different n?
5개월 전
문제를 풀었습니다
Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)
5개월 전
문제를 풀었습니다
Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?
5개월 전
문제를 풀었습니다
Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?
5개월 전
문제를 풀었습니다
Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?
5개월 전





