A résolu


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

plus d'un an il y a

A résolu


Find Logic 13

plus d'un an il y a

A résolu


Find Logic 12

plus d'un an il y a

A résolu


Find Logic 11

plus d'un an il y a

A résolu


Find Logic 10

plus d'un an il y a

A résolu


Find Logic 27

plus d'un an il y a

A résolu


Find Logic 26

plus d'un an il y a

A résolu


Find Logic 22

plus d'un an il y a

A résolu


Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...

plus d'un an il y a

A résolu


Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...

plus d'un an il y a

A résolu


Divide elements by sum of elements
In this problem, I ask you to write a function which will divide the elements of each column by the sum of the elements of the s...

plus d'un an il y a

A résolu


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

plus d'un an il y a

A résolu


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

plus d'un an il y a

A résolu


Oh Zero Zero Zero!!!
Hello all, So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...

plus d'un an il y a

A résolu


Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

plus d'un an il y a

A résolu


Count consecutive 0's in between values of 1
So you have some vector that contains 1's and 0's, and the goal is to return a vector that gives the number of 0's between each ...

plus d'un an il y a

A résolu


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

plus d'un an il y a

A résolu


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] is s...

plus d'un an il y a

A résolu


Find Logic 30

plus d'un an il y a

A résolu


Find Logic 31

plus d'un an il y a

A résolu


Find Logic 32

plus d'un an il y a

A résolu


Find Logic 25

plus d'un an il y a

A résolu


Find Logic 23

plus d'un an il y a

A résolu


Find Logic 20

plus d'un an il y a

A résolu


NCHOOSEK - Time Optimization
Input V —— Set of all choices, a vector of N, 1 < N < 100 K —— Number of selected choices, a scalar, 0 <= K <= N Output C ——...

plus d'un an il y a

A résolu


Powers Of
Fill the vector with powers of 2, so that vector(1) is 2^1, vector(2) is 2^2, etc. Stop with vector(10). Complete the function ...

plus d'un an il y a

A résolu


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

plus d'un an il y a

A résolu


Max of a Vector
Write a function to return the max of a vector

plus d'un an il y a

A résolu


Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

plus d'un an il y a

A résolu


Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. For...

plus d'un an il y a

Charger plus