A résolu


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

plus de 5 ans il y a

A résolu


Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

plus de 5 ans il y a

A résolu


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

plus de 5 ans il y a

A résolu


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

plus de 5 ans il y a

A résolu


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

plus de 5 ans il y a

A résolu


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

plus de 5 ans il y a

A résolu


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

plus de 5 ans il y a

A résolu


~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

plus de 5 ans il y a

A résolu


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

plus de 5 ans il y a

A résolu


Find Logic 32

plus de 5 ans il y a

Problème


Find Logic 32

plus de 5 ans il y a | 2 | 212 solveurs

A résolu


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

plus de 5 ans il y a

A résolu


Find Logic 31

plus de 5 ans il y a

Problème


Find Logic 31

plus de 5 ans il y a | 2 | 200 solveurs

A résolu


Find Logic 30

plus de 5 ans il y a

Problème


Find Logic 30

plus de 5 ans il y a | 2 | 202 solveurs

A résolu


Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

plus de 5 ans il y a

A résolu


Find Logic 27

plus de 5 ans il y a

Problème


Find Logic 27

plus de 5 ans il y a | 2 | 249 solveurs

A résolu


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

plus de 5 ans il y a

A résolu


Find Logic 26

plus de 5 ans il y a

Problème


Find Logic 26

plus de 5 ans il y a | 4 | 191 solveurs

A résolu


Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

plus de 5 ans il y a

A résolu


Find Logic 26

plus de 5 ans il y a

Problème


Find Logic 26

plus de 5 ans il y a | 1 | 204 solveurs

A résolu


Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...

plus de 5 ans il y a

A résolu


Find Logic 26

plus de 5 ans il y a

Problème


Find Logic 26

plus de 5 ans il y a | 1 | 246 solveurs

A résolu


Find Logic 25

plus de 5 ans il y a

Problème


Find Logic 25

plus de 5 ans il y a | 1 | 239 solveurs

Charger plus