문제를 풀었습니다


Cody problems in French : Trouvez la logique Pt.2
Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'utilisation de "^" est de nouveau fortement...

2년 초과 전

문제를 풀었습니다


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

2년 초과 전

문제를 풀었습니다


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

2년 초과 전

문제를 풀었습니다


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

2년 초과 전

문제를 풀었습니다


Beat the test suite if you can :)
Solve this problem based on clues in the test suite.

2년 초과 전

문제를 풀었습니다


Avengers Assemble!
Given matrix with so many zeroes, trim those zeroes and output a matrix joining all nnz elements Example: input = [0 0 0 0 0; 0...

2년 초과 전

문제를 풀었습니다


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

2년 초과 전

문제를 풀었습니다


Create tangent function out of cosine only
Please don't use tangent and sine functions

2년 초과 전

문제를 풀었습니다


Primes Checker
Given variable inputs Check if they are prime numbers

2년 초과 전

문제를 풀었습니다


Combine the digits to output numbers
input could be of any length e.g. 1. in1 = 1 in2 = 2 output = 12 2. in1 = 2 in2 = 1 in3 = 0 output = 210

2년 초과 전

문제를 풀었습니다


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

2년 초과 전

문제를 풀었습니다


Determine the factorial of a number

2년 초과 전

문제를 풀었습니다


Factorize uniquely! (★★)

2년 초과 전

문제를 풀었습니다


Create a vector of n alternating ones and minus ones (★★)

2년 초과 전

문제를 풀었습니다


Round to nearest integer

2년 초과 전

문제를 풀었습니다


STOP that car!!!
The maximum allowed speed for this road is 100. Find the cars that didn't observe the speed limit Arrest and fine them!!!

2년 초과 전

문제를 풀었습니다


Average valid values of arrays
Given a 1D array (column or row vector), compute the average of valid values. Valid values are defined via two thresholds: minVa...

2년 초과 전

문제를 풀었습니다


Find same numbers touching each other...
So the goal here is to find any number that is equal to its immediate neighbors and mark it true. Here is some examples: x...

2년 초과 전

문제를 풀었습니다


Delete the column with all 0 !
Delete the column with all 0 data in a matrix(x). e.g. input x = 1 0 0 4 5 0 7 0 ...

2년 초과 전

문제를 풀었습니다


Count given word x in text.
Count how many times given word x repeats in text.

2년 초과 전

문제를 풀었습니다


Vector of digits (★★)
Given a positive integer x, construct a vector y with all the digits of x in the order of appearance in x. Thus, if x = 172...

2년 초과 전

문제를 풀었습니다


Find the next square number
Given one or more integers n, find the next integer that is a square, for each of them. Example 1: n = 1; out = 4; ...

2년 초과 전

문제를 풀었습니다


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

2년 초과 전

문제를 풀었습니다


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

2년 초과 전

문제를 풀었습니다


Binary Inversion
Given the unsigned 8-bit integer x, return the number y which is the binary inversion of x. For example if x is 5, y should b...

2년 초과 전

문제를 풀었습니다


Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square. ...

2년 초과 전

문제를 풀었습니다


Determine the roots of a cubic equation
Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

2년 초과 전

문제를 풀었습니다


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

2년 초과 전

문제를 풀었습니다


Convert array of decimal numbers into hexadecimal numbers array.
Convert array of decimal numbers into hexadecimal numbers array. Example x =[ 32 33 34 35 36 37 38 ...

2년 초과 전

문제를 풀었습니다


factorial
calculate x!

2년 초과 전

더 보기