Risolto


Sum of infinite series.

oltre 3 anni fa

Problema


Determine the minimum number of swaps to sort a vector
Cody Problem 1401 asks us to sort a vector with the bubble sort algorithm and count the number of swaps needed. For example, to ...

oltre 3 anni fa | 2 | 6 risolutori

Risolto


swap sign sum & multiply castles
* It is an easy problem, if you know the answer. * Given a square matrix of NxN ordinary numbers. * Initially place N identi...

oltre 3 anni fa

Risolto


007: Chinese Barrack Invasion
*MISSION:* Successfully invade a military barrack located in China. *WARNING:* There is a row of _n_ security switches protec...

oltre 3 anni fa

Risolto


Check if a directory is on the current MATLAB search path
Given a directory name as a string, return true if the directory is on the current MATLAB search path, and false otherwise.

oltre 3 anni fa

Risolto


Six Steps to PCA - Step 1: Centre and Standardize
*Introduction* Principal Component Analysis (PCA) is a classic among the many methods of multivariate data analysis. Invented...

oltre 3 anni fa

Risolto


Calculate BMI
Given weight in kgs and height in metres, calculate body mass index

oltre 3 anni fa

Problema


Compute flow in a partially full pipe
Problem statement When does the maximum flow occur in a pipe? Intuition might suggest that it occurs when the pipe is flowing f...

oltre 3 anni fa | 1 | 8 risolutori

Risolto


raise x to the nth power
use basic math operators and a variable to solve the problem for a given variable n. (make sure "n" is the variable you use)

oltre 3 anni fa

Risolto


multiply by 5
multiply x by 5

oltre 3 anni fa

Risolto


multiply by 12
multiply x by 12

oltre 3 anni fa

Risolto


Find gradient of a numeric data which has same size as the existing vector.
**** Refer matlab documentation about finding gradient **** Convert the entire gradient vector to least integer form. (Probably...

oltre 3 anni fa

Problema


Route a hydrograph through a river section with the Muskingum method
Problem statement Write a function that routes a hydrograph through a river section using the Muskingum method. The input to t...

oltre 3 anni fa | 0 | 4 risolutori

Problema


Identify de Polignac numbers
The numbers 125 and 329 can be written as the sum of a prime and a power of 2. For example, , and . The numbers 127 and 331, whi...

oltre 3 anni fa | 2 | 24 risolutori

Problema


Solve an ODE: draining tank
Write a function to compute the time to drain a cylindrical tank of diameter from an initial level to a level . The outflow oc...

oltre 3 anni fa | 3 | 12 risolutori

Risolto


Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

oltre 3 anni fa

Problema


List numbers such that every sum of consecutive positive integers ending in those numbers is composite
The sequence in question in this problem involves numbers such that all sums of consecutive positive integers ending with are ...

oltre 3 anni fa | 1 | 9 risolutori

Problema


List the two-bit primes
Each year at Christmas, my father-in-law and his partner send me the Puzzle Mania section from the New York Times. This year’s e...

oltre 3 anni fa | 1 | 10 risolutori

Risolto


Blood test?
Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent...

oltre 3 anni fa

Risolto


Sub-sequence - 02
Given two sequences, find the length of the longest common subsequence. a=[1,1,1,1,1,2,3,1,4] b=[2,3,0,0,9,5,4,1] longe...

oltre 3 anni fa

Risolto


Find the remainder - 02
Given an array of integers, find the remainder when the summation of all the elements is divided by N

oltre 3 anni fa

Risolto


Find the remainder - 01
Given an array of integers, find the remainder when the product of all the elements is divided by N

oltre 3 anni fa

Risolto


Sub-Diagonal Sum
Given a (m x n) matrix and a value r {1,-1}, change every element to the sum of the diagonal led by the element. r=1 > regular ...

oltre 3 anni fa

Problema


Compute infiltration and runoff under constant precipitation with the Green-Ampt method
Problem statement Write a function that computes infiltration, depression storage, and runoff using the Green-Ampt method. It s...

oltre 3 anni fa | 2 | 4 risolutori

Risolto


Armstrong Number
Write a function name armstrong_check that checks whether the given input is an Armstrong Number or not. It returns logical True...

oltre 3 anni fa

Risolto


Zero finder
Write a function named 'zero_finder' that takes a matrix as input and returns the row index of the last zero for each for each c...

oltre 3 anni fa

Problema


Inscribe a circle in a triangle with a side of length equal to the circle’s circumference
A circle of radius is inscribed in a triangle with a side that has a length equal to the circle’s circumference. The center of ...

oltre 3 anni fa | 2 | 8 risolutori

Carica altro