질문


Operations on variables with specific naming patterns
I am reading in a large number of text files. The files contain numerical values that I want, and text that I do not. Using th...

8년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

거의 9년 전

문제를 풀었습니다


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

거의 9년 전

문제를 풀었습니다


Rotate it!
Given a set of points, your aim is to rotate it by a given angle "theta" CCW (in 2d). The points are given in a matrix(x) of dim...

거의 9년 전

문제를 풀었습니다


Backslang, odds are you used it at some point in time...
So backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it. Wel...

거의 9년 전

문제를 풀었습니다


Kryptos - CIA Cypher Sculpture: Vignere Decryption
The <http://en.wikipedia.org/wiki/Kryptos Kryptos Sculpture> contains four encypted messages. This Challenge is to Decrypt tw...

거의 9년 전

문제를 풀었습니다


I'm going to enjoy watching you calculate, Mr Anderson
Smith numbers are numbers such that if you add up all of the digits in the number, that sum equals the sum of all of the digits ...

거의 9년 전

문제


I'm going to enjoy watching you calculate, Mr Anderson
Smith numbers are numbers such that if you add up all of the digits in the number, that sum equals the sum of all of the digits ...

거의 9년 전 | 2 | 솔버 수: 49

문제를 풀었습니다


How brilliant are you?
A Brilliant number is defined as a number with two prime factors, both of which have the same number of digits. Some examples: ...

거의 9년 전

문제


How brilliant are you?
A Brilliant number is defined as a number with two prime factors, both of which have the same number of digits. Some examples: ...

거의 9년 전 | 3 | 솔버 수: 66

문제를 풀었습니다


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

거의 9년 전

문제를 풀었습니다


raise 1/3
Raise a number to 1/3 power.

거의 9년 전

문제를 풀었습니다


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

거의 9년 전

문제를 풀었습니다


Divisible by 21
Write a function to determine if a number is divisible by 21.

거의 9년 전

문제를 풀었습니다


Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...

거의 9년 전

문제를 풀었습니다


Vector parallel to plane?
Given the coefficients of the equation which defines a plane as follows: ax+by+cz=d, return a boolean indicating whether the 2n...

거의 9년 전

문제를 풀었습니다


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

거의 9년 전

문제를 풀었습니다


return row and column indices given 2 values which define a range
Inspired by problem <http://www.mathworks.co.kr/matlabcentral/cody/problems/856-getting-the-indices-from-a-matrice> Inputs: - ...

거의 9년 전

문제를 풀었습니다


Geometric Series
Given x and n, give the sum of x ^ 1 to x ^ n. You should not have to use a loop for this.

거의 9년 전

문제를 풀었습니다


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

거의 9년 전

문제를 풀었습니다


Percentage profit:4
If a shopkeeper is selling W gram of salt in 1 dollar he will face r% loss. How much salt he should sell in grams to make r% pro...

거의 9년 전

문제를 풀었습니다


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

거의 9년 전

문제를 풀었습니다


Matrix game: Winner takes all
Given a matrix A, return a new matrix of the same size in which the biggest element of each column in A takes 1, and 0 for all t...

거의 9년 전

문제를 풀었습니다


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

거의 9년 전

문제를 풀었습니다


Percentage profit:3
x% product is sold at r1% profit. However, our target overall profit is rt%. What is the required percentage profit to meet the ...

거의 9년 전

문제를 풀었습니다


'5*3' copy character 3 - five times
The input is a string. Wherever a * sign occurs in string repeat copies of character on the right hand side of * sign. The numbe...

거의 9년 전

문제를 풀었습니다


Percentage profit:2
If you are selling at x dollar, you are facing r1% profit; what will be the selling price for making r2% profit?

거의 9년 전

문제를 풀었습니다


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

거의 9년 전

문제를 풀었습니다


Find my secret function IV
We use the same secret function used on the past "Find my secret function ..." x=23 -------->> y=3 X=1000 ------->> 163

거의 9년 전

문제를 풀었습니다


Find my secret function II
If give my function a x value it will give me a y value, so find the secret of it: Examples: input x=23 ---- >>> output y=1...

거의 9년 전

더 보기