Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


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

más de 5 años hace

Resuelto


Find Logic 32

más de 5 años hace

Problema


Find Logic 32

más de 5 años hace | 2 | 208 solvers

Resuelto


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

más de 5 años hace

Resuelto


Find Logic 31

más de 5 años hace

Problema


Find Logic 31

más de 5 años hace | 2 | 196 solvers

Resuelto


Find Logic 30

más de 5 años hace

Problema


Find Logic 30

más de 5 años hace | 2 | 197 solvers

Resuelto


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

más de 5 años hace

Resuelto


Find Logic 27

más de 5 años hace

Problema


Find Logic 27

más de 5 años hace | 2 | 243 solvers

Resuelto


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

más de 5 años hace

Resuelto


Find Logic 26

más de 5 años hace

Problema


Find Logic 26

más de 5 años hace | 4 | 187 solvers

Resuelto


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

más de 5 años hace

Resuelto


Find Logic 26

más de 5 años hace

Problema


Find Logic 26

más de 5 años hace | 1 | 200 solvers

Resuelto


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

más de 5 años hace

Resuelto


Find Logic 26

más de 5 años hace

Problema


Find Logic 26

más de 5 años hace | 1 | 242 solvers

Resuelto


Find Logic 25

más de 5 años hace

Problema


Find Logic 25

más de 5 años hace | 1 | 235 solvers

Cargar más