Risolto


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' ...

6 mesi fa

Risolto


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

6 mesi fa

Risolto


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...

6 mesi fa

Risolto


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...

6 mesi fa

Risolto


Find the Pattern 10

6 mesi fa

Risolto


Find the Pattern 9

6 mesi fa

Risolto


Find the Pattern 8

6 mesi fa

Risolto


Find the Pattern 7

6 mesi fa

Risolto


Find the Pattern 6

6 mesi fa

Risolto


Find the Pattern 5

6 mesi fa

Risolto


Find the Pattern 4

6 mesi fa

Risolto


Find the Pattern 3

6 mesi fa

Risolto


Find the Pattern 2

6 mesi fa

Risolto


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

6 mesi fa

Risolto


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

6 mesi fa

Risolto


Remove the Zero
Given an array n, remove all zeros

6 mesi fa

Risolto


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...

6 mesi fa

Risolto


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 = ...

6 mesi fa

Risolto


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

6 mesi fa

Risolto


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

6 mesi fa

Risolto


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...

6 mesi fa

Risolto


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.

6 mesi fa

Risolto


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

6 mesi fa

Risolto


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

6 mesi fa

Risolto


prime test
find largest 2 digit prime number

6 mesi fa

Risolto


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;

6 mesi fa

Risolto


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:*...

6 mesi fa

Risolto


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...

6 mesi fa

Risolto


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

6 mesi fa

Risolto


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...

6 mesi fa

Carica altro