Community Profile

# arsenic 陈

### Northeastern University

100 total contributions since 2020

View details...

Contributions in
View by

Solved

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

9 días ago

Solved

Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

26 días ago

Solved

Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

28 días ago

### 1

Solved

Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

alrededor de 1 mes ago

Solved

Box
Give the volume of a box, x is equal to the body diagonal.

alrededor de 1 mes ago

Solved

Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

alrededor de 1 mes ago

Solved

Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

alrededor de 1 mes ago

Solved

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

alrededor de 1 mes ago

Solved

Converts numbers into characters
Converts numbers into characters

alrededor de 1 mes ago

Solved

Find the max element of the array
Find the max element of the array

alrededor de 1 mes ago

Solved

Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

alrededor de 1 mes ago

Solved

Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

alrededor de 1 mes ago

Solved

to the 2 all elements
to the 2 all elements

alrededor de 1 mes ago

Solved

the average value of the elements
Calculate the average value of the elements in the array

alrededor de 1 mes ago

Solved

Double all elements in the array
Duplicate all elements in the array

alrededor de 1 mes ago

Solved

calculate the length of matrix
input 1 array, calculate the length

alrededor de 1 mes ago

Solved

Draw a '0' in a one matrix!

alrededor de 1 mes ago

Solved

Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

alrededor de 1 mes ago

Solved

Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

alrededor de 1 mes ago

Solved

Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

alrededor de 1 mes ago

Solved

Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

alrededor de 1 mes ago

Solved

Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

alrededor de 1 mes ago

Solved

Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

alrededor de 1 mes ago

Solved

Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

alrededor de 1 mes ago

Solved

Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

alrededor de 1 mes ago

Solved

Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

alrededor de 1 mes ago

Solved

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

alrededor de 1 mes ago

matrix calculation for matrix
a = zeros(400,5); b = ones(1,5) for i = 10:10:400 a(i,:) = b; end

alrededor de 1 mes ago | 0

| accepted

Solved

Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

alrededor de 1 mes ago