A résolu


Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.

plus de 3 ans il y a

A résolu


attenuation
A beam of X-rays propagates a length d(1) through a medium with an attenuation coefficient alpha(1). After that the beam propaga...

plus de 3 ans il y a

A résolu


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] ) == [...

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


Find the nearest value to the given one

plus de 3 ans il y a

A résolu


Number Puzzle - 063

plus de 3 ans il y a

A résolu


Number Puzzle - 060

plus de 3 ans il y a

A résolu


Number Puzzle - 083

plus de 3 ans il y a

A résolu


Previous Palindrome

plus de 3 ans il y a

A résolu


Number Puzzle - 047

plus de 3 ans il y a

A résolu


Number Puzzle - 045

plus de 3 ans il y a

A résolu


Number Puzzles - 018

plus de 3 ans il y a

A résolu


Number Puzzle - 037

plus de 3 ans il y a

A résolu


Number Puzzle - 039

plus de 3 ans il y a

A résolu


find the index of local maximum in matrix

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


Minkowski distance

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


Number Puzzle - 032

plus de 3 ans il y a

A résolu


Number Puzzle - 040

plus de 3 ans il y a

A résolu


Number Puzzle - 048

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


Intercambiar columnas - UC3M

plus de 3 ans il y a

Charger plus