Resuelto


String count
given a string 'str', count the number of the followings - * letters * digits * white space * capital letters * smal...

alrededor de 3 años hace

Resuelto


generate the matrix
given 3 inputs e.g [2,3,4] -- generate a matrix like below -- [2 2 0 0 0 0 0 0 0; 2 2 0 0 0 0 0 0 0; 0 0 3 3 3 0 0 0 0; 0 0...

alrededor de 3 años hace

Resuelto


Remove duplicated triangles
Input T is a triangulation (triplet list of indices -positive integers-, each index refering to a vertex number in a correspondi...

alrededor de 3 años hace

Resuelto


generate the matrix
given a value n (say 4) - generate the matrix like below y= [0 1 2 3 4; -1 0 1 2 ...

alrededor de 3 años hace

Resuelto


find nth even fibonacci number
1st even fibonacci number=2 ; 2nd even fibonacci number=8 ..

alrededor de 3 años hace

Resuelto


Adjoint matrix
given a matrix a, find the adjoint matrix of a.

alrededor de 3 años hace

Resuelto


Find a common vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

alrededor de 3 años hace

Resuelto


Rotate a matrix without using rot90
rotate the input square matrix by certain degrees (e.g. 270 or 450 etc.) without using rot90 or flip function. its an extension...

alrededor de 3 años hace

Resuelto


cofactor matrix
given a matrix, find its cofactor matrix <https://en.wikipedia.org/wiki/Minor_(linear_algebra)#Inverse_of_a_matrix>

alrededor de 3 años hace

Resuelto


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

alrededor de 3 años hace

Resuelto


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

alrededor de 3 años hace

Resuelto


Check if a number belongs in the fibonacci squence
Test if integer i is a number in the fibonacci sequence. Return true if it is.

alrededor de 3 años hace

Resuelto


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

alrededor de 3 años hace

Resuelto


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

alrededor de 3 años hace

Resuelto


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

alrededor de 3 años hace

Resuelto


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

alrededor de 3 años hace

Resuelto


Reepeating numbers in array
Repeating numbers in array In = [1 0 0 0 2 0 0 0 3 0 0 0 0 0 5 0 0 0 0]. Out = [1 1 1 1 2 2 2 2 3 3 3 3 3 3 5 5 5 5 5].

alrededor de 3 años hace

Resuelto


check whether a number is a pentatope number
<https://oeis.org/A000332>

alrededor de 3 años hace

Resuelto


generate nth pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

alrededor de 3 años hace

Resuelto


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

alrededor de 3 años hace

Resuelto


Repeat elements of a vector
Repeat each elements of a given vector according to their values. * x=[1,2,1,3] * y=[1,2,2,1,3,3,3]

alrededor de 3 años hace

Resuelto


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

alrededor de 3 años hace

Resuelto


factorial
calculate x!

alrededor de 3 años hace

Resuelto


The length of the equal sides of an isoceles triangle is 'a'.For all the possible (integer) values of the remaining side,find the associated angles between the two equal sides.
the remaining side may have many possible values.only assume integer ones for simplicity.

alrededor de 3 años hace

Resuelto


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the si...

alrededor de 3 años hace

Resuelto


Summing Rows and Columns
Create a matrix y of size (n+1) whose last column's elements are the summation of the elements of all the other columns and last...

alrededor de 3 años hace

Resuelto


Cross ("+") flag returns
Given two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, an...

alrededor de 3 años hace

Resuelto


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

alrededor de 3 años hace

Resuelto


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

alrededor de 3 años hace

Resuelto


SAY 'OHYEAH'
Regardless of input, output the string 'OHYEAH'.

alrededor de 3 años hace

Cargar más