문제를 풀었습니다


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

8년 초과 전

문제를 풀었습니다


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

8년 초과 전

문제를 풀었습니다


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

8년 초과 전

문제를 풀었습니다


Replace Nan!
Replace Nan in the given vector(v) with 9999.

8년 초과 전

문제를 풀었습니다


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

8년 초과 전

문제를 풀었습니다


Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

8년 초과 전

문제를 풀었습니다


Create an m x n array consisting only of an input value.
Create an array with m rows and n columns wherein all entries are assigned the input value x.

8년 초과 전

문제를 풀었습니다


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

8년 초과 전

문제를 풀었습니다


"Power matrix" of two vectors
Given two row vectors x,y of lengths m and n (respectively), create an m x n matrix whose i,j entry is x(i)^y(j).

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

8년 초과 전

문제를 풀었습니다


Percentage profit:4
If a shopkeeper is selling W gram of salt in 1 dollar he will face r% loss. How much salt he should sell in grams to make r% pro...

8년 초과 전

문제를 풀었습니다


Nth root
Nth root of a number x

8년 초과 전

문제를 풀었습니다


~(*|/)
Return three quarters of n without using addition, subtraction, multiplication or division.

8년 초과 전

문제를 풀었습니다


find the relation...
if given input is 1, output is 4. if input is 55, output is 3136.

8년 초과 전

문제를 풀었습니다


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

8년 초과 전

문제를 풀었습니다


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

8년 초과 전

문제를 풀었습니다


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

8년 초과 전

문제를 풀었습니다


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

8년 초과 전

문제를 풀었습니다


How long does it take to run a bath?
Given the *volume flow rate* (volume/time) of a faucet and the *volume* of a bath tub, find the amount of time it takes to fill ...

8년 초과 전

문제를 풀었습니다


Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

8년 초과 전

문제를 풀었습니다


Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

8년 초과 전

문제를 풀었습니다


Matrix Construction I
Given n, construct a matrix as shown in the example below. Example For n=8, the output should look like this: 1 2 3 4 ...

8년 초과 전

문제를 풀었습니다


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

8년 초과 전

문제를 풀었습니다


Matlab Basics II - Determine if an array has a 3rd dimension
For an array A, determine whether it has 3 dimensions, return 0 if x is only 2D, and 1 if x is 3D

8년 초과 전

문제를 풀었습니다


Matlab Basics II - 3 Dimensional Arrays
Assume x is a 3D array with n pages, representing students in a class, for each student (page in the array, the 3rd dimension), ...

8년 초과 전

문제를 풀었습니다


Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

8년 초과 전

문제를 풀었습니다


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

8년 초과 전

문제를 풀었습니다


Solve Linear equations
Solve Linear equations Example: x+y=2 and x+2y=3, then x and y equal to 1.

8년 초과 전

문제를 풀었습니다


Moving average (variable kernel length)
Find the moving average in a vector. The kernel length is a variable. For example x = 1:10 kernel_length = 2 would r...

8년 초과 전

더 보기