Community Profile

Contact

Top 10% contributor

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

Solve this!

3 years ago

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

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

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

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

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

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

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

You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

*Background* In mine-hunting games (e.g. Microsoft Minesweeper), the user is provided with a covered grid that, upon a left c...

4 years ago

Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries