문제를 풀었습니다


Times 3 problem
When you enter the number, it should return the number multiplied by 3

대략 9년 전

문제를 풀었습니다


Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

대략 9년 전

문제를 풀었습니다


Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

대략 9년 전

문제를 풀었습니다


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

대략 9년 전

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


Find max
Find the maximum value of a given vector or matrix.

대략 9년 전

문제를 풀었습니다


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

대략 9년 전

문제를 풀었습니다


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

대략 9년 전

문제를 풀었습니다


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.

대략 9년 전

문제를 풀었습니다


Find out rooms, peak to peak, average for a square wave.
Find out rms, peak to peak, average for a square wave from peak value. <http://www.rfcafe.com/references/electrical/square-w...

대략 9년 전

문제를 풀었습니다


How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

대략 9년 전

문제를 풀었습니다


Perfect Square
Find a function that finds the root of a perfect number!

대략 9년 전

문제를 풀었습니다


Baseball Pitch Question
One pitcher made 10 practice pitches during his warm up before the game. Using the given information, create a vector matrix an...

대략 9년 전

문제를 풀었습니다


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

대략 9년 전

문제를 풀었습니다


Sum all integers from 1 to 5^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=6

대략 9년 전

문제를 풀었습니다


create a column
use vector notation to create a column

대략 9년 전

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

대략 9년 전

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


Logical operators and arrays: 3-input and truth table
Given 3 inputs (inputA, inputB, inputC), assign threeInputAnd with the truth table outcomes for a 3 variable logical-and operati...

대략 9년 전

문제를 풀었습니다


Indexing the array: Moving values
* Write three statements to shift the array contents 1 position to the left. * The rightmost element should be assigned -1.

대략 9년 전

문제를 풀었습니다


Smallest and Largest Real Numbers
Complete the function by assigning minReal with the smallest positive double precision floating-point number, and maxReal with t...

대략 9년 전

문제를 풀었습니다


Logical indexing: Player scores
Player 1 and player 2 take turns playing a game. Row array gameScores contains the scores of player 1, then player 2, then playe...

대략 9년 전

문제를 풀었습니다


Logical variables: Running late?
* Assign onTime with true if noTraffic is true and gasEmpty is false.

대략 9년 전

문제를 풀었습니다


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

대략 9년 전

문제를 풀었습니다


Tree Height
Assign treeHeight with the tree height given the shadow length and angle of elevation. Simple geometry can compute the heigh...

대략 9년 전

문제를 풀었습니다


Double colon operator: Increment by x
* Construct a row array countValues from 0 to 25, elements incremented by incrementValue. Ex: If incrementValue is 5, countVa...

대략 9년 전

문제를 풀었습니다


Double colon operator: Counting up
* Construct a row array countValues from 1 to endValue, using the double colon operator. Ex: If endValue is 5, countValues s...

대략 9년 전

문제를 풀었습니다


Double colon operator: Counting down
* Construct a row array countValues from startValue to endValue, elements decremented by -2 end Ex: If startValue is 10 and ...

대략 9년 전

문제를 풀었습니다


Indexing an array element
* Assign currentStudent with the second element of array testScores.

대략 9년 전

더 보기