Resuelto


Which Char Array has the greater decimal value
Given to character arrays, determine which array has the greater decimal value. 'Hello' --> 72 + 101 + 108 + 108 + 111 = 500 ...

casi 4 años hace

Resuelto


Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...

casi 4 años hace

Resuelto


Pascal's triangle
<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

casi 4 años hace

Resuelto


increasing sequences
Given a string of digits, insert commas to create a sequence of strictly increasing numbers so as to minimize the magnitude of t...

casi 4 años hace

Problema


Generate Bernoulli polynomials
The Bernoulli polynomial is a polynomial of order with the properties that and for and . Therefore, , , , etc. Notice ...

casi 4 años hace | 1 | 11 solvers

Resuelto


Find the standard deviation of an array
given an array, find it's standard deviation without using the std() function. Use sample formula (n-1) for standard deviation a...

casi 4 años hace

Resuelto


Chain multiplication - 03
Following up the problem in 55305, you found the minimum number of multiplications needed to multiply a chain of matrices. In ...

casi 4 años hace

Resuelto


Sort Non-zeros
Consider 0s in a vector creates a break-point. sort all the sub-arrays created by those break points. For example, a = [3, 4, 1...

casi 4 años hace

Resuelto


Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

casi 4 años hace

Resuelto


Cyclotomic polynomial
Given a Natural number (N), return the corresponding Cyclotomic Polynomial.

casi 4 años hace

Resuelto


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

alrededor de 4 años hace

Resuelto


resistor ladder
* You have a bunch (an odd number N) of identical resistors (each R ohms), a good battery (V volts), and a high impedance voltme...

alrededor de 4 años hace

Problema


Count estrangements
Recently I made a puzzle for my wife that included a cryptogram, which involves an arrangement of the letters A through Z. I use...

alrededor de 4 años hace | 1 | 11 solvers

Resuelto


Nth Order Polynomial Regression
Inputs: -two vectors x and y (row or column) -order of polynomial, p Outputs: -vector of coefficients [b0 b...

alrededor de 4 años hace

Resuelto


Parametric Array
Create a row vector, 1xN (Integer, >1), such that the mean of the vector is M (Real number) and the standard deviation of the ...

alrededor de 4 años hace

Problema


List the semiprimes
A semiprime number—or a 2-almost prime—is the product of two prime numbers. The numbers and are semiprimes, but and are not....

alrededor de 4 años hace | 0 | 16 solvers

Resuelto


Nodal Voltage of Resistor Ladder Network
* You have a bunch (an even number N) of identical resistors (each R ohms), a good battery (V volts) and a high impedance voltme...

alrededor de 4 años hace

Resuelto


How many palindromes?
* Given a set of letters, count all possible palindromes, using all of those letters. * For example, if the set is {'A' 'A' 'A'...

alrededor de 4 años hace

Resuelto


Oxidation State
* In some chemical compounds, the oxidation state of each atom of hydrogen H is +1. * In some chemical compounds, the oxidation...

alrededor de 4 años hace

Problema


Determine whether one vector is a subset of another
While bumbling through a pair of problems in the Number Theory group, I wrote code to determine whether a vector is a subset of ...

alrededor de 4 años hace | 6 | 16 solvers

Resuelto


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

alrededor de 4 años hace

Resuelto


Fangs of pseudo-vampire number
given a number, find all the fangs of that number. A pseudo-vampire number can have multiple of fangs. The output should be a...

alrededor de 4 años hace

Resuelto


Find similar/related functions
The help function can be useful for getting quick assistance on a particular function. For most built-in MATLAB functions, a por...

alrededor de 4 años hace

Resuelto


Compute the intersect point of line and plan
Compute the intersect point of line and plan. eg. line AB, the coordinate of A is (1,2,3) the coordinate of B is (-4,-5,-6...

alrededor de 4 años hace

Resuelto


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

alrededor de 4 años hace

Resuelto


Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

alrededor de 4 años hace

Resuelto


Create a fixed format text output
Given a short brief matrix, such as x = [1.2 2.4 3.6; 1.5 2.3 3.5; 1.35 2.35 3.65] and a label 13, create a fixed format text o...

alrededor de 4 años hace

Resuelto


Aerodynamic load on a vehicle
Determine the aerodynamic load on a vehicle having aerodynamic drag coefficient , frontal area , moving at speed in an environm...

alrededor de 4 años hace

Resuelto


Zigzag array
Given an vector of integers, rearrange the array so that the array looks like: [largest value, smallest value, 2nd largest valu...

alrededor de 4 años hace

Resuelto


Pascal's Triangle
Given an interger n, return n row Pascal's Triangle.

alrededor de 4 años hace

Cargar más