A résolu

MATCH THE STRINGS (2 CHAR) very easy
Match the given string based on first two characters on each string. For example A='harsa'; b='harish'; result '1' ...

presque 2 ans il y a

A résolu

Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

presque 2 ans il y a

A résolu

Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

presque 2 ans il y a

A résolu

Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

presque 2 ans il y a

A résolu

Find the Pattern 10

presque 2 ans il y a

A résolu

Find the Pattern 9

presque 2 ans il y a

A résolu

Find the Pattern 8

presque 2 ans il y a

A résolu

Find the Pattern 7

presque 2 ans il y a

A résolu

Find the Pattern 6

presque 2 ans il y a

A résolu

Find the Pattern 5

presque 2 ans il y a

A résolu

Find the Pattern 4

presque 2 ans il y a

A résolu

Find the Pattern 3

presque 2 ans il y a

A résolu

Find the Pattern 2

presque 2 ans il y a

A résolu

Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

presque 2 ans il y a

A résolu

Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

presque 2 ans il y a

A résolu

Remove the Zero
Given an array n, remove all zeros

presque 2 ans il y a

A résolu

Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

presque 2 ans il y a

A résolu

Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

presque 2 ans il y a

A résolu

Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

presque 2 ans il y a

A résolu

01 - Scalar variables
Create the following variables: <<http://samle.dk/STTBDP/Assignment1_1.png>>

presque 2 ans il y a

A résolu

No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

presque 2 ans il y a

A résolu

vectorization in N
For a given integer n (n>1), compute the sum f (i) (1 <= i <= n) where f (i) = 1 if n is odd and 2 otherwise.

presque 2 ans il y a

A résolu

What percentage?
Calculate the output c as the percentage of a on b for given a and b.

presque 2 ans il y a

A résolu

prime test 2
enter the only non prime,non composite number

presque 2 ans il y a

A résolu

prime test
find largest 2 digit prime number

presque 2 ans il y a

A résolu

Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

presque 2 ans il y a

A résolu

The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

presque 2 ans il y a

A résolu

Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

presque 2 ans il y a

A résolu

Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

presque 2 ans il y a

A résolu

Back to basics 18 - justification
Covering some basic topics I haven't seen elsewhere on Cody. Given a string with extra spaces in front and/or in back, return...

presque 2 ans il y a