문제를 풀었습니다


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

문제를 풀었습니다


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

9년 초과 전

문제를 풀었습니다


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

9년 초과 전

문제를 풀었습니다


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

9년 초과 전

문제를 풀었습니다


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: ...

9년 초과 전

문제를 풀었습니다


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

9년 초과 전

문제를 풀었습니다


Equal to their cube
Tell me three real numbers that are equal to their cubes?

9년 초과 전

문제를 풀었습니다


Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

9년 초과 전

문제를 풀었습니다


05 - Vector Equations 3
Define the vector _dVec_: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 10) ...

9년 초과 전

문제를 풀었습니다


Find out missing number from a vector of 9 elements
You are given a vector of size 9, x = [x1 x2 x3 x4 x5 x6 x7 x8 x9] Elements of x may be randomly selected without repeati...

9년 초과 전

문제를 풀었습니다


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

9년 초과 전

문제를 풀었습니다


"mirror" matrix
Create n x 2n "mirror" matrix of this type: e.g. for n = 2 m = [1 2 2 1;1 2 2 1] e.g. for n = 3 m = [1 2 3 3 2 1...

9년 초과 전

문제를 풀었습니다


Will there be a new leader?
Simply answer the title.

9년 초과 전

문제를 풀었습니다


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

9년 초과 전

문제를 풀었습니다


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

9년 초과 전

문제를 풀었습니다


Negative matrix
Change the sign of all elements in given matrix.

9년 초과 전

문제를 풀었습니다


Least common multiple of many numbers
1:6 -> 60

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

9년 초과 전

문제를 풀었습니다


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

9년 초과 전

문제를 풀었습니다


MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...

9년 초과 전

문제를 풀었습니다


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

9년 초과 전

문제를 풀었습니다


Small aircraft weight limit
Write an if-else statement that evaluates to true if the sum of passengerWeight and cargoWeight is less than or equal maxWeight....

9년 초과 전

문제를 풀었습니다


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

9년 초과 전

문제를 풀었습니다


how to find size of a matrix?
how to find size of a matrix?

9년 초과 전

문제를 풀었습니다


How to power of a given number&exponent?
How to power of a given number&exponent?

9년 초과 전

문제를 풀었습니다


how to create zero square matrix with given order?
y-Zero square matrix with given input order x.

9년 초과 전

문제를 풀었습니다


Writing a while loop
Write a while loop that continues to increment userValue by 5 until userValue is less than 0.

9년 초과 전

문제를 풀었습니다


While loop: Summation
Write a while loop that assigns summedValue with the sum of all values from 1 to userNum. Assume userNum is always greater than ...

9년 초과 전

문제를 풀었습니다


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

9년 초과 전

더 보기