Risolto


Surface area of a sphere
Given the radius of a sphere, find it's Surface area

7 giorni fa

Risolto


Surface area of a cone

7 giorni fa

Risolto


The Birthday Phenomenon
First off, leap years are not being considered for this. In fact the year that people are born shouldn't be taken into considera...

7 giorni fa

Risolto


Count the Number of Directed Cycles in a Graph
Given an asymmetric adjacency matrix, determine the number of unique directed cycles. For example, the graph represented by adj...

7 giorni fa

Risolto


Determine connected components of a graph
Adjacency matrix of an undirected graph is given. Return the number of connected components in the graph.

7 giorni fa

Risolto


Graph Algorithms 3: Number of Connected Components
Given an adjacency matrix of a simple undirected graph, find the number of connected components.

7 giorni fa

Risolto


Parcel Routing
Given a matrix that represent the distance along highways between major cities numbered 1 to _N_, provide the path and shortest ...

7 giorni fa

Risolto


FloydWarshall
Our task is to find shortest paths between every pair of nodes. Floyd-Warshall is a graph algorithm for finding shortest paths i...

7 giorni fa

Risolto


Reproduce this plot!
Write a function that will take a dataset (x,y), a best fit model (model), and the upper and lower prediction bounds (lb,ub) for...

7 giorni fa

Risolto


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

7 giorni fa

Risolto


Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...

7 giorni fa

Risolto


Missing Number (arithmetic progression)
Given a list of integers forming an arithmetic progression (where the difference between consecutive elements is constant), your...

7 giorni fa

Risolto


Absolute Sorting
Given an array with various numbers, your have to sort it by absolute value in ascending order. For example, for the array [-2...

7 giorni fa

Risolto


Find out value of polynomial at different value.
Find out value of polynomial at different value. Example p(s) = s + 8 For s=0, value is 8.

7 giorni fa

Risolto


find out eigenvector of matrix
find out eigenvector of matrix A =eye(3); Answer is [0 0 1; 0 1 0; 1 0 0];

7 giorni fa

Risolto


Vector to 3-Column Matrix
Consider a vector *A* such as A = [1 2 3 3 4 5 6] Can you convert this vector to a three-column matrix like this: ...

7 giorni fa

Risolto


nxn matrix with elements from 1:n^2
input n defines the dimension of a square matrix to be filled from 1 to n^2 with 1 in upper left corner and n^2 in bottom right...

7 giorni fa

Risolto


Sum multiples

7 giorni fa

Risolto


Sort in descending order.

7 giorni fa

Risolto


Power Numbers
Find the n-th power of m.

7 giorni fa

Risolto


Create a column vector of n elements between a and b (both included)
Given lower limit a and an upper limit b, create a column vector of n elements inclusive of a and b. For example: a = 1, b = 4,...

7 giorni fa

Risolto


String Logic 13
Examples: 'CAT' --> 'TCA' 'DOG' --> 'OGD' 'ROSY' --> 'YSRO' 'MOSTLY' --> 'YTSOML'

7 giorni fa

Risolto


Maior Primo
Dado um valor inteiro N, qual o maior valor primo <= N MaiorPrimo(5) = 5; MaiorPrimo(10) = 7;

7 giorni fa

Risolto


Lista Ordenada
Dado um vetor V, verifique se o vetor está ordenado, retorne true ou false. Ordenado([1 2 3 4]) = true;

7 giorni fa

Risolto


Remove Duplicates
Remove duplicates from the vector of integers and display in sorted order

7 giorni fa

Risolto


Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

7 giorni fa

Risolto


Which one is More bigger?
we have two input like (x,y) our output (z) must wich one is bigger input.

7 giorni fa

Risolto


Play Oware with the digits of a number
Oware is a pit and pebble game that consists of two sets of pits or houses filled with pebbles or seeds. During a turn, a player...

7 giorni fa

Risolto


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9 giorni fa

Risolto


Easy Sequences 32: Almost Pythagorean Triples
An Almost Pythagorean Triple (abbreviated as "APT'), is a set of 3 integers in which square of the largest element, which we wil...

9 giorni fa

Carica altro