문제를 풀었습니다


Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle. Say a = 4, b = 3 then c = 5 Please don't use ^ and sqrt() function.

7년 초과 전

문제를 풀었습니다


Calculate sin(x) without sin(x)
Calculate y = sin(x) x = 0 -> y= 0 without the use of sin(x) or cos(x)

7년 초과 전

문제를 풀었습니다


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

7년 초과 전

문제를 풀었습니다


Bubble sort
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Weighted Convolution
Given two input vectors x = [x_1, x_2, ..., x_K] and y = [y_1, y_2, ..., y_K] of equal length, compute the weighted convolution ...

7년 초과 전

문제를 풀었습니다


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

7년 초과 전

문제를 풀었습니다


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

7년 초과 전

문제를 풀었습니다


Non trivial identities - round
Return x after rounding it.

7년 초과 전

문제를 풀었습니다


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

7년 초과 전

문제를 풀었습니다


Probabilities - Balls and urns - 01
The urn contains B blue balls and R red balls. Each trial consists of drawing one random ball from the urn and observing its col...

7년 초과 전

문제를 풀었습니다


Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

7년 초과 전

문제를 풀었습니다


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Transpose of matrix
Transpose of matrix as per test cases

7년 초과 전

문제를 풀었습니다


Zero Cross
Write a function that counts the number of times n a signal x crosses zero or changes sign. Examples x = [1 2 -3 -4 5 6 ...

7년 초과 전

문제를 풀었습니다


Halder function
Find the halder function value of a number

7년 초과 전

문제를 풀었습니다


find minimum
find the minimum from an array

7년 초과 전

문제를 풀었습니다


find sum of the numbers in array
calculate the sum of numbers in a given array

7년 초과 전

문제를 풀었습니다


Find mean
given an array, find the mean of the number in that array

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

7년 초과 전

문제를 풀었습니다


first element of matrix
find the first elements of a column matrix

7년 초과 전

문제를 풀었습니다


find lenth of array
you have given an array, find the length of that.

7년 초과 전

문제를 풀었습니다


list of prime numbers
n is given find the largest prime number <=n

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


find the Area of a rectangle
length is x width is y what is the area of the rectangle?

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

더 보기