Community Profile

# guoping qiu

##### Last seen: Today
484 2017 이후 총 참여 횟수

#### guoping qiu's 배지

세부 정보 보기...

참여 게시물
보기 기준

해결됨

Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

약 4시간 전

해결됨

Get the elements of diagonal and antidiagonal for any m-by-n matrix
In the problem <http://www.mathworks.com/matlabcentral/cody/problems/858-permute-diagonal-and-antidiagonal Problem 858. Permute ...

약 4시간 전

해결됨

Multiply 2 numbers
Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

약 4시간 전

해결됨

if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

약 4시간 전

해결됨

Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

약 5시간 전

해결됨

Transpose of matrix
Transpose of matrix as per test cases

약 5시간 전

해결됨

Find nearest prime number less than input number
Find nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...

약 5시간 전

해결됨

Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

약 5시간 전

해결됨

Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

약 5시간 전

해결됨

Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

약 5시간 전

해결됨

Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];

약 5시간 전

해결됨

Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

약 5시간 전

해결됨

Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

약 5시간 전

해결됨

Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

약 5시간 전

해결됨

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

약 5시간 전

해결됨

Distance walked 2D
Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

약 5시간 전

해결됨

Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

약 5시간 전

해결됨

Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

약 5시간 전

해결됨

Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

약 5시간 전

해결됨

Sophie Germain prime
In number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...

약 5시간 전

해결됨

What is the distance from point P(x,y) to the line Ax + By + C = 0?
Given a point, P(x,y), find the distance from this point to a linear line. INPUTS: x, y, A, B, C OUTPUTS: d, the distance ...

약 5시간 전

해결됨

Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

약 11시간 전

해결됨

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

약 11시간 전

해결됨

Armstrong Number
Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-D...

약 11시간 전

해결됨

Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

약 11시간 전

해결됨

Positive Infinity
Round the array a towards positive infinity

약 11시간 전

해결됨

Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

약 11시간 전

해결됨

Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

약 11시간 전

해결됨

Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

약 12시간 전

해결됨

Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

약 12시간 전