문제를 풀었습니다


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

4년 초과 전

문제를 풀었습니다


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

4년 초과 전

문제를 풀었습니다


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

4년 초과 전

문제를 풀었습니다


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

거의 5년 전

문제를 풀었습니다


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

거의 5년 전

문제를 풀었습니다


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

거의 5년 전

문제를 풀었습니다


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

거의 5년 전

문제를 풀었습니다


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

거의 5년 전

문제를 풀었습니다


Number of 1s in the Binary Representation of a Number
*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

거의 5년 전

문제를 풀었습니다


Test if a Number is a Palindrome without using any String Operations
*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

거의 5년 전

문제를 풀었습니다


7 segment LED display
Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (see Wikipedia: <http://...

거의 5년 전

문제를 풀었습니다


length of a vector
Find twice the length of a given vector.

거의 5년 전

문제를 풀었습니다


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

거의 5년 전

문제를 풀었습니다


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

거의 5년 전

문제를 풀었습니다


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

거의 5년 전

문제를 풀었습니다


Add two numbers
Add two numbers (For beginners)

거의 5년 전

문제를 풀었습니다


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

거의 5년 전

문제를 풀었습니다


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

거의 5년 전

문제를 풀었습니다


Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

거의 5년 전

문제를 풀었습니다


Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

거의 5년 전

문제를 풀었습니다


Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

거의 5년 전

문제를 풀었습니다


02 - Vector Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2a.png>>

거의 5년 전

문제를 풀었습니다


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

거의 5년 전

문제를 풀었습니다


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

거의 5년 전

문제를 풀었습니다


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

거의 5년 전

문제를 풀었습니다


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

거의 5년 전

문제를 풀었습니다


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

거의 5년 전

문제를 풀었습니다


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

거의 5년 전

문제를 풀었습니다


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

거의 5년 전

문제를 풀었습니다


04 - Scalar Equations 2
Define the variables a and b: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b.png>...

거의 5년 전

더 보기