Gelöst


Half-Swap
Given a vector with an even number of elements, rearrange it so that the elements in its first half are switched with those i...

etwa 5 Jahre vor

Gelöst


Distances in a circle
A circle (360°) is given and a row of 6 monotonic increasing numbers with the which difference from last to first value is les...

etwa 5 Jahre vor

Gelöst


Find the Pattern 6

etwa 5 Jahre vor

Gelöst


Find the Pattern 5

etwa 5 Jahre vor

Gelöst


Find the Pattern 3

etwa 5 Jahre vor

Gelöst


time difference
The arrays x and y contain time values in the form of: x = [hours minutes seconds] Create the output z which contains the...

etwa 5 Jahre vor

Gelöst


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

etwa 5 Jahre vor

Gelöst


Cryptomath: Addition
W A I T + A L L --------- G I F T S equals: 9 6 0 8 + 6 7 7 --------- 1 0 2 8 5 Given str...

etwa 5 Jahre vor

Gelöst


Make a simplified barcode
Given an integer to encode, make a barcode using the following encoding scheme: * The bar code is made from the binary versio...

etwa 5 Jahre vor

Gelöst


Substring Extraction
In a given string, find the substring between Start_string and End_string. You will have to include or exclude the Start_str...

etwa 5 Jahre vor

Gelöst


Basic matlab numeric and string manipulations
If entered input (n) is _numeric_ , compute its *log to the base (n+2)* , if it is a _lower case_ alphabet, *convert it to i...

etwa 5 Jahre vor

Gelöst


Day counter function
Write a function called _day_counter_ that returns the number of Mondays that fell on the first day of the month in a given year...

etwa 5 Jahre vor

Gelöst


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s = [ 195 125 260 440 395 290] and you have amount ...

etwa 5 Jahre vor

Gelöst


Which coins to give
I was in shop today. I admired, how shop assistant had to think, which coins to give me. The task is we have a vector v=[0.5 0....

etwa 5 Jahre vor

Gelöst


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

etwa 5 Jahre vor

Gelöst


Upper Matrix in LU Decompositon
Get the Triangular Upper Matrix of the Matrix Given You cannot use built-in Matlab functions triu :)

etwa 5 Jahre vor

Gelöst


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

etwa 5 Jahre vor

Gelöst


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

etwa 5 Jahre vor

Gelöst


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

etwa 5 Jahre vor

Gelöst


Create a code for XNOR
Given two inputs, output XNOR of those two

etwa 5 Jahre vor

Gelöst


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

etwa 5 Jahre vor

Gelöst


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

etwa 5 Jahre vor

Gelöst


Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1...

etwa 5 Jahre vor

Gelöst


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

etwa 5 Jahre vor

Gelöst


Move if I am Optimus Prime
If the number is a prime, roll out!

etwa 5 Jahre vor

Gelöst


Clamper Function
Create a function that emulates a clamper circuit Given sin wave, t and the constant value for clamping

etwa 5 Jahre vor

Gelöst


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

etwa 5 Jahre vor

Gelöst


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

etwa 5 Jahre vor

Gelöst


Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

etwa 5 Jahre vor

Gelöst


Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.
Given a matrix x, *using loops only* return a matrix y, in which all the zeros have "climbed" up to the top. That is, any zeros ...

etwa 5 Jahre vor

Mehr laden