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

quasi 2 anni 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];...

quasi 2 anni 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...

quasi 2 anni 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...

quasi 2 anni fa

Risolto


Find the Pattern 10

quasi 2 anni fa

Risolto


Find the Pattern 9

quasi 2 anni fa

Risolto


Find the Pattern 8

quasi 2 anni fa

Risolto


Find the Pattern 7

quasi 2 anni fa

Risolto


Find the Pattern 6

quasi 2 anni fa

Risolto


Find the Pattern 5

quasi 2 anni fa

Risolto


Find the Pattern 4

quasi 2 anni fa

Risolto


Find the Pattern 3

quasi 2 anni fa

Risolto


Find the Pattern 2

quasi 2 anni fa

Risolto


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

quasi 2 anni fa

Risolto


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

quasi 2 anni fa

Risolto


Remove the Zero
Given an array n, remove all zeros

quasi 2 anni 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...

quasi 2 anni 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 = ...

quasi 2 anni fa

Risolto


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

quasi 2 anni fa

Risolto


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

quasi 2 anni 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...

quasi 2 anni 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.

quasi 2 anni fa

Risolto


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

quasi 2 anni fa

Risolto


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

quasi 2 anni fa

Risolto


prime test
find largest 2 digit prime number

quasi 2 anni 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;

quasi 2 anni 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:*...

quasi 2 anni 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...

quasi 2 anni 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];

quasi 2 anni 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...

quasi 2 anni fa

Carica altro