Kurt Masvidal
2016 年からアクティブ
Followers: 0 Following: 0
統計
All
Feeds
解決済み
Half wave rectifier
Create a function that emulates a half wave rectifier. Use a sine wave
7年以上 前
解決済み
Full Wave rectifier
Create a function that emulates a full wave rectifier. Use a sine wave
7年以上 前
解決済み
Clamper Function
Create a function that emulates a clamper circuit Given sin wave, t and the constant value for clamping
7年以上 前
解決済み
Create tangent function out of sine function only
Please don't use cosine and tangent functions
7年以上 前
解決済み
Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1 1 1]
7年以上 前
解決済み
Duplicate me
Repeat elements of vector input twice Ex: input = [1 2 3] output = [1 1 2 2 3 3]
7年以上 前
解決済み
N-plicate me
Modified version of duplicate and triplicate me. Repeat elements of input vector with given input n Ex: input = [1 2 3 4 5...
7年以上 前
解決済み
Modified run-length companion vector
Given a vector x, return a vector that indicates the run length of any value in x. Each element in output vector shows how many ...
7年以上 前
解決済み
Find the outcast
All pairs have the same difference except for one. Output the index of the latter Example: input =[0 1; 1 0; 2 3; 4 5;] ou...
7年以上 前
解決済み
Sum of the squares of optimus
Get the sum of the squares of primes given limit input x Ex. x = 10, output = 2^2 + 3^2 + 5^2 + 7^2
7年以上 前
解決済み
Square of the sum of optimus
Get the square of the sum of all primes given the limit input x
7年以上 前
解決済み
Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 x1 = 123444...
7年以上 前
解決済み
Mode of Optimus!!!
Get the mode of primes of input x When you get the output, you'll know what mode Optimus is always using :)
7年以上 前
解決済み
Find my daddy long leg (No 's')
Given the ratio of the two legs,and the hypotenuse, find the value of the bigger leg
7年以上 前
解決済み
Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...
7年以上 前
解決済み
Triplicate me
Given an input vector, output a 3n vector with all elements of input vector repeated thrice Example : in->[1 2 3 5] out...
7年以上 前
解決済み
Implement zero based indexing (Vectors only)
Given an input vector and position (which is zero based) output the value Example: x = [1 2 4 5] pos = 2 value = 4
7年以上 前
解決済み
Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...
7年以上 前