Community Profile

Contact

Top 10% contributor

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

Solve this!

1 year ago

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

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

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

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

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

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...