Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 32

mehr als 5 Jahre vor

Problem


Find Logic 32

mehr als 5 Jahre vor | 2 | 208 Lösungsvorschläge

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 31

mehr als 5 Jahre vor

Problem


Find Logic 31

mehr als 5 Jahre vor | 2 | 196 Lösungsvorschläge

Gelöst


Find Logic 30

mehr als 5 Jahre vor

Problem


Find Logic 30

mehr als 5 Jahre vor | 2 | 197 Lösungsvorschläge

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 27

mehr als 5 Jahre vor

Problem


Find Logic 27

mehr als 5 Jahre vor | 2 | 243 Lösungsvorschläge

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 26

mehr als 5 Jahre vor

Problem


Find Logic 26

mehr als 5 Jahre vor | 4 | 187 Lösungsvorschläge

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 26

mehr als 5 Jahre vor

Problem


Find Logic 26

mehr als 5 Jahre vor | 1 | 200 Lösungsvorschläge

Gelöst


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

mehr als 5 Jahre vor

Gelöst


Find Logic 26

mehr als 5 Jahre vor

Problem


Find Logic 26

mehr als 5 Jahre vor | 1 | 241 Lösungsvorschläge

Gelöst


Find Logic 25

mehr als 5 Jahre vor

Problem


Find Logic 25

mehr als 5 Jahre vor | 1 | 235 Lösungsvorschläge

Mehr laden