문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


does it touch ?
given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

거의 10년 전

문제를 풀었습니다


Einsteinium-253 decay
Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is lef...

거의 10년 전

문제를 풀었습니다


Compute change
A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. Given amountToChange, ...

거의 10년 전

문제를 풀었습니다


Nth root.
* Assign outValues with the nth root of the inValues, the root is specified by rootValue

거의 10년 전

문제를 풀었습니다


Currency conversion
A currency exchange booth offers an exchange rate of 119.771 Japanese yen for 1 US dollar. The currency exchange booth rounds do...

거의 10년 전

문제를 풀었습니다


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

거의 10년 전

문제


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

거의 10년 전 | 1 | 솔버 수: 55

문제


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

거의 10년 전 | 1 | 솔버 수: 61

문제를 풀었습니다


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

거의 10년 전

문제를 풀었습니다


Solving a quadratic equation
Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

거의 10년 전

문제를 풀었습니다


Polynomial division
Divide a polynomial u by polynomial v and return the quotients only. Example: u = x^4+3*x^3+5*x+3 v = x^2+1 Answer: ...

거의 10년 전

문제를 풀었습니다


Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

거의 10년 전

문제를 풀었습니다


Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

거의 10년 전

문제를 풀었습니다


square root
Find the square root (y) of an input (x).

거의 10년 전

문제를 풀었습니다


Multiple if statements
Write an if-statement that subtracts 5 from outputValue if amplitudeResponse is greater than 10. Write a second if-statement tha...

거의 10년 전

문제를 풀었습니다


Food safety
Assign safeTemperature with 1 if foodTemperature is less than 40 or greater than 165.

거의 10년 전

문제를 풀었습니다


Check bounds
Assign inRange with 1 if userWeight is greater than 100 and less than or equal to 200.

거의 10년 전

문제를 풀었습니다


Genetic markers test
Assign testResult with 1 if either geneticMarkerA is 1 or geneticMarkerB is 1. If geneticMarkerA and geneticMarkerB are both 1, ...

거의 10년 전

문제를 풀었습니다


convert?
* Given a string containing a number followed by pounds or kgs, for example: * 'Billy lost 22 pounds in four weeks.' * 'Maria ...

거의 10년 전

문제를 풀었습니다


Vectorizing, too easy or too hard?
Please insert a . before any ^, * or / in the string. That's it!!

거의 10년 전

문제를 풀었습니다


deconvolution
* Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients. * In this example, the polynimial is 1*x^3...

거의 10년 전

문제


Refresh your system of equations
Given square matrix, and solution vector, find the values of the variables Example: xyz = [1 -1 2; 0 2 5; 4 0 -3]; //x-y+2...

거의 10년 전 | 4 | 솔버 수: 53

문제를 풀었습니다


System of equations
Find a solution to a system of equations represented by a |n| by |n+1| matrix. For instance, [ 2 0 4; => 2*x = 4 ...

거의 10년 전

문제를 풀었습니다


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

거의 10년 전

문제를 풀었습니다


Snakes on a plane
Given the dimensions of a 2-d plane, create a matrix where a "snake" of ones occupies the plane from top left to bottom right. ...

거의 10년 전

문제를 풀었습니다


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

거의 10년 전

문제


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

거의 10년 전 | 4 | 솔버 수: 76

문제를 풀었습니다


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

거의 10년 전

문제를 풀었습니다


Function definition: Double down.
* Complete the DoubleDown function to return twice the initialValue.

거의 10년 전

더 보기