문제를 풀었습니다


Draw a X
Given an input , create a square matrix of zeros with an X of ones. Ex. n = 3 drawX(3) [ 1 0 1 0 1 0 1 0 1 ] ...

3년 초과 전

문제를 풀었습니다


Determine if all elements are odd
Given an array, return true if all of the elements are odd. ex. x = [3 4 1] allOdd(x) ans = false ex. x = [3 5 7; 5 9...

3년 초과 전

문제를 풀었습니다


determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).

3년 초과 전

문제를 풀었습니다


determine if input is Odd
Find whether the input is odd. return 1 if true or else 0

3년 초과 전

문제를 풀었습니다


Invert a Logical Matrix
Given a logical matrix, invert its values

3년 초과 전

문제를 풀었습니다


find the position of the given number in vector
return the position of the number in vector

3년 초과 전

문제를 풀었습니다


return odd numbers
Return odd numbers in an vector

3년 초과 전

문제를 풀었습니다


determine if input is even
find the number is even or not

3년 초과 전

문제를 풀었습니다


Calculate the surface area of a sphere
Given the radius of a sphere, calculate the surface area

3년 초과 전

문제를 풀었습니다


Find the median of elements in vector without using in built median function
Given a vector, find the median of the vector whose length is odd without using in built median function. Input : [1,1,2,4,5,5,...

3년 초과 전

문제를 풀었습니다


Determine if integer is even
Write a function to determine if an input integer(n) is even. The output should be a boolean (true or false).

3년 초과 전

문제를 풀었습니다


Two sum
Give a vector of numbers and a target, return indices of two numbers such that they add up to the target

3년 초과 전

문제를 풀었습니다


Find Min and Max Differences in a Vector
Given an array of integers, return the absolute largest and smallest (non zero) difference between any two numbers in the array....

3년 초과 전

문제를 풀었습니다


Distance of Car
If a car is going x miles per hour, how long does it take to get y miles?

3년 초과 전

문제를 풀었습니다


Find the number of zeros in a matrix
Find the number of zeros in a matrix

3년 초과 전

문제를 풀었습니다


Calculate the weight of a cow
Initially, the cow weighs 200kg. If it gains x kg every day, how much does it weight after y days?

3년 초과 전

문제를 풀었습니다


Vector slither sort!
Sort a numeric vector in the following format: [largest value, smallest value, second largest value, second smallest value, etc...

3년 초과 전

문제를 풀었습니다


Find the number of ones in a matrix.
Find the number of ones in a matrix.

3년 초과 전

문제를 풀었습니다


Find the number of primes leq than input
Given an integer n, determine the number of primes less than or equal to n.

3년 초과 전

문제를 풀었습니다


Determine if input is prime
Output if prime

3년 초과 전

문제를 풀었습니다


Monty Python and the Holy Grail: Crossing the Bridge of Death
To cross the Bridge of Death, your function must return the numerical value for the airspeed velocity of an unladen swallow

3년 초과 전

문제를 풀었습니다


Extract the main diagonal of a matrix
Extract the main diagonal of a matrix and return as an array. For example, the main diagonal of the following matrix would be: ...

3년 초과 전

문제를 풀었습니다


Draw a fancy '7' in a zero matrix!
Given a x-by-x matrix filled with zeros (x is odd and > 3). Use 7s to draw a number 7 into it! Like this: x = 5, y = 7 7 7 7 7...

3년 초과 전

문제를 풀었습니다


Test for CODEchella
Test for CODEchella Find the fourth-root of a number

3년 초과 전

문제를 풀었습니다


Return longest string in 1-D array of strings
Find the longest string in an array of strings. Return an empty string if the initial array is empty. If there are multiple stri...

3년 초과 전

문제를 풀었습니다


Sort vector by number of prime factors of each element
Sort a given array based on how many prime factors each term has. Sort from least to greatest and output original values. Ex: ...

3년 초과 전

문제를 풀었습니다


Nth term of AP
Given the first term 'a' and the common difference 'd' of an AP series, calculate the nth term of the series.

3년 초과 전

문제를 풀었습니다


Return the Fun Numbers
Return the Fun Numbers, just the 3s and 7s

3년 초과 전

문제를 풀었습니다


True engineer
Prove that pi is indeed equal to e. Return 1 by rounding pi and e to the nearest integer then asserting rounded pi and e are eq...

3년 초과 전

문제를 풀었습니다


Pseudo-vampire number
refer to <https://en.wikipedia.org/wiki/Vampire_number> Given a number x, determine whether it is a pseudo-vampire number. ...

3년 초과 전

더 보기