Community Profile

photo

Fangyuan Yu


Last seen: ungefär en månad ago
14 total contributions since 2020

Fangyuan Yu's Badges

  • Community Group Solver
  • Solver

View details...

Contributions in
View by

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

ungefär 2 månader ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

ungefär 2 månader ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

ungefär 2 månader ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

ungefär 2 månader ago

Solved


Find max
Find the maximum value of a given vector or matrix.

ungefär 2 månader ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

ungefär 2 månader ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

ungefär 2 månader ago

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

ungefär 2 månader ago

Solved


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

ungefär 2 månader ago

Solved


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

ungefär 2 månader ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

ungefär 2 månader ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

ungefär 2 månader ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

ungefär 2 månader ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

ungefär 2 månader ago