문제를 풀었습니다


Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

대략 9년 전

문제를 풀었습니다


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

대략 9년 전

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


Steal, Share, or Catch
You, I, and a few other characters are going to play a game of *Steal, Share or Catch*. We are going to play it 10,000 times vs...

대략 9년 전

문제를 풀었습니다


Next Higher Power of B
|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_. ...

대략 9년 전

문제를 풀었습니다


Fizz Buzz
Given an array of positive, non-zero, integers, return a cell array of strings the same size as the input, where each element in...

대략 9년 전

문제를 풀었습니다


Logical operators: Flipping bits
The xor operator will toggle the bit if the bit is xored with 1. Ex: 1 XOR 0 = 1, 1 XOR 1 = 0. The xor operator will retain th...

대략 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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


Nth root.
* Assign outValues with the nth root of the inValues, the root is specified by rootValue

대략 9년 전

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


Constructing strings
* Construct a string alphaString from 'a' to endLetter, using the double colon operator. Ex: If endLetter = 'e', then alphaSt...

대략 9년 전

문제를 풀었습니다


Computing Wind chill
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

대략 9년 전

문제를 풀었습니다


Comparing floating point values
* Assign matchFound with true if firstSample and secondSample are less than thresholdValue.

대략 9년 전

문제를 풀었습니다


Relational operators and row arrays: Run times
* Construct a row array fastRunTimes containing all elements of runTimes equal to or less than 480 seconds. Ex: If runTimes =...

대략 9년 전

문제를 풀었습니다


Indexing the array: Shift right with variable sized arrays
* Write a statement to shift the array contents 1 position to the left. * Assign the rightmost element with -1. Ex: [12, 85...

대략 9년 전

문제를 풀었습니다


Function definition: BMI calculator
Define a function CalculateBMI with inputs massKg and heightCm. The function returns bodyMassIndex. The function should be able ...

대략 9년 전

문제를 풀었습니다


Adding an element: Ticker tape
* Add stockPrice to the beginning of row array tickerTape

대략 9년 전

문제를 풀었습니다


Concatenating strings
* Write a statement that assigns fullName with firstName, a space, then lastName. Ex: If firstName is Alan and lastName is Tu...

대략 9년 전

문제를 풀었습니다


Extracting data: Heart rate (pulse)
The resting heart rate for an average adult is 60 - 100 beats per minute. Assign row array heartExtracted with all values in row...

대략 9년 전

문제를 풀었습니다


Multiple element-wise operations: Percent change
Row arrays sales2013 and sales2014 reflect the quarterly sales (in millions) of a popular potato chip company. Write a statement...

대략 9년 전

문제를 풀었습니다


Concatenating arrays
* Assign studentIDs with concatenated row arrays groupA and groupB

대략 9년 전

문제를 풀었습니다


Array resizing: Removing elements
* Remove elements 2, 4, and 6 from row array pendingTasks

대략 9년 전

문제를 풀었습니다


Indexing the array: Moving values
Assume sampleReadings always contains three elements. * Shift the array contents one position to the left. * The rightmost ...

대략 9년 전

문제를 풀었습니다


Variable Assignment
Complete the ? part by assigning myExamScore with 100.

대략 9년 전

문제를 풀었습니다


Linear-spaced points array
* Construct a row array plotPoints with 5 values that are spaced linearly from lowValue to highValue. Ex: If lowValue is 1 and ...

대략 9년 전

문제를 풀었습니다


Variable sized row arrays
* Reverse the contents of row array mileMarkers

대략 9년 전

문제를 풀었습니다


Constructing column arrays
* Construct a column array elevatorStops with values 2, 4, 5, 9, and 10

대략 9년 전

문제를 풀었습니다


Column arrays: Transpose a row array
* Construct a row array countValues with elements 1 to endValue, using the colon operator. * Transpose countValues to result in...

대략 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년 전

더 보기