Solved


Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed. Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...

nästan 2 år ago

Solved


Greed is good - Simple partition P[n].
Find a simple partition P[n]. E.g. P[10] = 4 + 3 + 2 + 1. There are many solutions, compute just one set. Don't repeat numbers...

nästan 2 år ago

Solved


Find the nearest value to the given one

nästan 2 år ago

Solved


Number Puzzle - 063

nästan 2 år ago

Solved


Number Puzzle - 060

nästan 2 år ago

Solved


Number Puzzle - 083

nästan 2 år ago

Solved


Previous Palindrome

nästan 2 år ago

Solved


Number Puzzle - 047

nästan 2 år ago

Solved


Number Puzzle - 045

nästan 2 år ago

Solved


Number Puzzles - 018

nästan 2 år ago

Solved


Number Puzzle - 037

nästan 2 år ago

Solved


Number Puzzle - 039

nästan 2 år ago

Solved


Compute circular convolution
In signal processing, we usually encounter the circular convolution case. Compute it here using the two input sequences (denoted...

nästan 2 år ago

Solved


String Logic 2
Example: ROSY --> HEIO TRUST --> JHKIJ MOSTLY --> CEIJBO

nästan 2 år ago

Solved


Form Blocks in a 1D array
Lets say I have an array of size (10,1); I want to divide it into the num number of blocks which are given by user no_of_b...

nästan 2 år ago

Solved


Percentage profit:3
x% product is sold at r1% profit. However, our target overall profit is rt%. What is the required percentage profit to meet the ...

nästan 2 år ago

Solved


Tribute to Ramanujan
The nth taxicab number, denoted as T(n), is defined as the smallest number that can be expressed as a sum of two positive algebr...

nästan 2 år ago

Solved


Minkowski distance

nästan 2 år ago

Solved


Remove Upper Case Letters
Example Matlab --> atlab proBlem --> prolem Enter --> nter

nästan 2 år ago

Solved


Number Puzzle - 032

nästan 2 år ago

Solved


Number Puzzle - 040

nästan 2 år ago

Solved


Number Puzzle - 048

nästan 2 år ago

Solved


Wythoff Sequence
Find the lower Wythoff sequence up to n. For more information, <https://oeis.org/A000201>

nästan 2 år ago

Solved


Rewrite setdiff to account for non-unique values
Setdiff(a,b) is a function that will remove all values of b from a. Sometimes, you need this function to do a little bit extra,...

nästan 2 år ago

Solved


Compute average gain for some bets.
Given a vector containg the odds of some events in decimal format (e.g., |odds=[1.3 2.5 1.5]| ) and a vector of the same dimensi...

nästan 2 år ago

Solved


Who have the chance?
Obtain a free 10 score in cody, if you have a chance don't change anything if you want to try or do what you can do to gain for ...

nästan 2 år ago

Solved


Intercambiar columnas - UC3M

nästan 2 år ago

Solved


How many days?!?
Christmas is coming earlier and earlier each year. Thanks to rampant commercialism and Christmas Creep, "The Twelve Days of Chr...

nästan 2 år ago

Solved


Generate a list of composite numbers

nästan 2 år ago

Load more