문제를 풀었습니다


Insert zeros II

4년 초과 전

문제를 풀었습니다


Test

4년 초과 전

문제를 풀었습니다


Row sum

4년 초과 전

문제를 풀었습니다


size

4년 초과 전

문제를 풀었습니다


find the height

4년 초과 전

문제를 풀었습니다


Size

4년 초과 전

문제를 풀었습니다


Factorial

4년 초과 전

문제를 풀었습니다


speed limit alert

4년 초과 전

문제를 풀었습니다


Return multiples of 3

4년 초과 전

문제를 풀었습니다


Row avg

4년 초과 전

문제를 풀었습니다


Compute the missing quantity among P, V, T for an ideal gas
Consider 100 mol of helium gas at a certain pressure (P), volume (V), and temperature (T). Assuming that the ideal gas law appli...

4년 초과 전

문제를 풀었습니다


Count the number of folds needed to pack a large sheet
In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

4년 초과 전

문제를 풀었습니다


Convert a temperature reading from Celsius to an unknown scale
Two of the most famous temperature scales are the Celsius and the Fahrenheit scale. In reality, however, there are so many other...

4년 초과 전

문제를 풀었습니다


Vigenere cipher - be like Sherlock Holmes!
You're a young detective. Every detective needs a function to decrypt a vigenère cipher. It's a modification of a caesar cipher....

4년 초과 전

문제를 풀었습니다


Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

4년 초과 전

문제를 풀었습니다


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

4년 초과 전

문제를 풀었습니다


average for three points
how to calculate the average (for each three values of y) y=[2 3 5 3 4 2 3 4 5 3 2 7 8 6 5 5 4 3 3 3 2 ] you ...

4년 초과 전

문제를 풀었습니다


Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

4년 초과 전

문제를 풀었습니다


Return fibonacci sequence do not use loop and condition version 2
Calculate the nth Fibonacci number,return sequence Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... ...

4년 초과 전

문제를 풀었습니다


Sum of elements of a vector (★★★)
Given any vector x = [x1, x2, x3, ... xn], compute the sum of its elements. Thus, if x = [ 1 3 -2 5 ], then the sum of its el...

4년 초과 전

문제를 풀었습니다


Matrix convolution
A certain convolution step involves an elementwise multipication between two 3x3 matrices and taking the resulting sum of the el...

4년 초과 전

문제를 풀었습니다


Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

4년 초과 전

문제를 풀었습니다


Factorize uniquely! (★★)

4년 초과 전

문제를 풀었습니다


Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

4년 초과 전

문제를 풀었습니다


*Prime number check 2 (in construction)
Another way to see if a number is prime is to count the number of factors. For example, the number 4 has 2 factors, [ 2 4 ]...

4년 초과 전

문제를 풀었습니다


Matrix with increasing numbers (★★★★)

4년 초과 전

문제를 풀었습니다


Make a checkerboard matrix (★★★★★)
(copy of Prob. 4) Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1...

4년 초과 전

문제를 풀었습니다


Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

4년 초과 전

문제를 풀었습니다


Create a vector with n repeated values of a number x (★★)
If x=3 and n=7 then the vector y would be y=[3 3 3 3 3 3 3]

4년 초과 전

문제를 풀었습니다


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

4년 초과 전

더 보기