문제를 풀었습니다


matrix of natural number
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

5년 초과 전

문제를 풀었습니다


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

5년 초과 전

문제를 풀었습니다


07 - Common functions and indexing 4
Define the matrix _cMat_: <<http://samle.dk/STTBDP/Assignment1_3c.png>> ( _cMat_ = 10x10 matrix where the numbers from 1 t...

5년 초과 전

문제를 풀었습니다


06 - Matrix Equations 2
Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...

5년 초과 전

문제를 풀었습니다


07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6 Magic squares are defined as square matrices, where the sum of a...

5년 초과 전

문제를 풀었습니다


Back to basics 18 - justification
Covering some basic topics I haven't seen elsewhere on Cody. Given a string with extra spaces in front and/or in back, return...

5년 초과 전

문제를 풀었습니다


07 - Common functions and indexing 2
Define _eMat_: <<http://samle.dk/STTBDP/Assignment1_3e.png>> Calculate eMean as the mean across the rows of _eMat_. The an...

5년 초과 전

문제를 풀었습니다


07 - Common functions and indexing 5
Create the vector _lin_: <<http://samle.dk/STTBDP/Assignment1_7e.png>> (the integers from 1 to 20) Make every other val...

5년 초과 전

문제를 풀었습니다


Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

5년 초과 전

문제를 풀었습니다


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

5년 초과 전

문제를 풀었습니다


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

5년 초과 전

문제를 풀었습니다


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

5년 초과 전

문제를 풀었습니다


Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

5년 초과 전

문제를 풀었습니다


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

5년 초과 전

문제를 풀었습니다


Log of a number
Write a script that will give the log of x as output.

5년 초과 전

문제를 풀었습니다


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

5년 초과 전

문제를 풀었습니다


Halder function
Find the halder function value of a number

5년 초과 전

문제를 풀었습니다


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

5년 초과 전

문제를 풀었습니다


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

5년 초과 전

문제를 풀었습니다


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

5년 초과 전

문제를 풀었습니다


Prime number removal
remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

5년 초과 전

문제를 풀었습니다


multiply an array by its position number
You have given an array. Multiply an array by its position number

5년 초과 전

문제를 풀었습니다


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

5년 초과 전

문제를 풀었습니다


Find out Harmonic mean.
Find out Harmonic mean.

5년 초과 전

문제를 풀었습니다


Transpose of matrix
Transpose of matrix as per test cases

5년 초과 전

문제를 풀었습니다


Convert Kilometers to Miles
Convert kilometers to miles. Consider 1 km = 0.62 mile. Note: Don't use the '*' operator.

5년 초과 전

문제를 풀었습니다


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.

5년 초과 전

문제를 풀었습니다


Find remainder when x is divided by 3
Find remainder when x is divided by 3

5년 초과 전

문제를 풀었습니다


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

5년 초과 전

문제를 풀었습니다


vector to string
Determine what the ASCII characters spell out. Example: input = [ 72 73 71 72] output = 'HIGH'

5년 초과 전

더 보기