문제를 풀었습니다


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

거의 8년 전

문제를 풀었습니다


Connect blocks in a model
Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

거의 8년 전

문제를 풀었습니다


surface of a spherical planet
you just discovered its circumference, that is the input.

거의 8년 전

문제를 풀었습니다


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

거의 8년 전

문제를 풀었습니다


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

거의 8년 전

문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

거의 8년 전

문제를 풀었습니다


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

거의 8년 전

문제를 풀었습니다


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

거의 8년 전

문제를 풀었습니다


inner product of two vectors
inner product of two vectors

거의 8년 전

문제를 풀었습니다


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

거의 8년 전

문제를 풀었습니다


radius of a spherical planet
you just measured its surface area, that is the input.

거의 8년 전

문제를 풀었습니다


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

거의 8년 전

문제를 풀었습니다


Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

거의 8년 전

문제를 풀었습니다


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

거의 8년 전

문제를 풀었습니다


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

거의 8년 전

문제를 풀었습니다


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

거의 8년 전

문제를 풀었습니다


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

거의 8년 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

거의 8년 전

문제를 풀었습니다


Multiply by 11
Multiply by 11 bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 10
Multiply by 10, bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 9
Multiply by 9, bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 8
Multiply by 8, bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 7
Multiply by 7, bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 6
Multiply by 6, bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 5
Multiply by 5, bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 4
Multiply by 4, bruh!

거의 8년 전

문제를 풀었습니다


Multiply by 3
There are many ways to obtain 3 times a number. You could multiply by 3, add the number 3 times, multiply by 6 and then subtract...

거의 8년 전

문제를 풀었습니다


Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

거의 8년 전

문제를 풀었습니다


Tic Tac Toe FTW
Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...

거의 8년 전

문제를 풀었습니다


Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

거의 8년 전

더 보기