문제를 풀었습니다


Number of nonzero elements in matrix
Calculate the number of nonzero elements for given matrix

9년 초과 전

문제를 풀었습니다


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

9년 초과 전

문제를 풀었습니다


Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

9년 초과 전

문제를 풀었습니다


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

9년 초과 전

문제를 풀었습니다


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

9년 초과 전

문제를 풀었습니다


kmph to mph converter
Convert the speed in miles/hour to km/hour.

9년 초과 전

문제를 풀었습니다


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

9년 초과 전

문제를 풀었습니다


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

9년 초과 전

문제를 풀었습니다


Number of primes
Count the number of primes less than 'n'.

9년 초과 전

문제를 풀었습니다


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

9년 초과 전

문제를 풀었습니다


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

9년 초과 전

문제를 풀었습니다


Iterative sum of digits of 2^n number
Given n, calculate the number 2^n (where n>=0) and *iterate* until the sum of the digits is a single-digit number. Example: ...

9년 초과 전

문제를 풀었습니다


Get factory-defined property values
Given a property name (e.g. 'AxesUnits', 'LineMarkerSize', 'UicontrolBackgroundColor'), return the factory-defined value for tha...

9년 초과 전

문제를 풀었습니다


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

9년 초과 전

문제를 풀었습니다


Upper Matrix in LU Decompositon
Get the Upper Matrix of the Matrix Given Please have a pride on not using built-in Matlab functions :)

9년 초과 전

문제를 풀었습니다


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

9년 초과 전

문제를 풀었습니다


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

9년 초과 전

문제를 풀었습니다


Non trivial identities - differentiation
Return x by differentiating it.

9년 초과 전

문제를 풀었습니다


Non trivial identities - flipping
Return x by flipping it.

9년 초과 전

문제를 풀었습니다


Non trivial identities - summation
Return x by adding a random number to it.

9년 초과 전

문제를 풀었습니다


Create a constant offset.
Add a constant offset to an array. For example: a=[1 3 5 9]; offset=2; y=[3 5 7 11];

9년 초과 전

문제를 풀었습니다


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

9년 초과 전

문제를 풀었습니다


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

9년 초과 전

문제를 풀었습니다


BaeIsAlwaysRight
Output yes whatever bae says

9년 초과 전

문제를 풀었습니다


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

9년 초과 전

문제를 풀었습니다


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

9년 초과 전

문제를 풀었습니다


Non trivial identities - reshape
Return x by reshaping it.

9년 초과 전

문제를 풀었습니다


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

9년 초과 전

문제를 풀었습니다


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

더 보기