Community Profile

photo

shuang Yang


Last seen: 9 months ago Active since 2022

Followers: 0   Following: 0

Statistics

All
  • Thankful Level 2
  • Solver
  • Explorer

View badges

Feeds

View by

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

12 months ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

12 months ago

Solved


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

12 months ago

Solved


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

12 months ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

12 months ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

12 months ago

Question


How to extract diagonal elements of multidimensional array ?
If I have a m-order n-dimensional tensor. How should I extract the diagonal elements ? For example % Generate a 3-order 4-dim...

1 year ago | 2 answers | 0

2

answers

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

1 year ago

Question


How to generate a multi-dimensional array from a vector ?
If I have a vector and a parameter , I need to generate a m-dimensional array , where is defined as follows: where , , ...

2 years ago | 3 answers | 0

3

answers