Resuelto


GJam 2017 Kickstart: Parentheses (Large)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p2 GJam 2017 Kickstart Parentheses>. ...

11 días hace

Resuelto


How to reverse spdiags?
The spdiags function extracts all nonzero diagonals from the m-by-n matrix A. So if A=[1 2 3;4 5 6;7 8 9], spdiags(A)=[7 4...

12 días hace

Resuelto


Pancake sorting - minimum flips.
Sort a stack of pancakes by flipping them using spatula. There are N pancakes with diameters 1:N. Spatula can be inserted anyw...

12 días hace

Resuelto


Pancake sorting
Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...

12 días hace

Resuelto


Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.
Given a matrix x, *using loops only* return a matrix y, in which all the zeros have "climbed" up to the top. That is, any zeros ...

12 días hace

Resuelto


Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.
--------------- A= [ 2 6 -3 7 12 0 -12 5 1] --------------- B= [12 7 1 6 2 0 5 -3 ...

12 días hace

Resuelto


feeling VERY lucky?
Just like Matthew's problem 2793 and Edward's problem 2872 (guess the number that Cody is thinking) but now you must solve it in...

12 días hace

Resuelto


the proud tradition of zero scores in Cody
The short version is: *_your function should return a zero and also have a zero score/size_* The long version comes with a li...

12 días hace

Resuelto


singularity 2.0 (really hard)
This problem is the continuation of problem <http://www.mathworks.com/matlabcentral/cody/problems/1770-singularity-2-0-harder Si...

12 días hace

Resuelto


singularity 2.0 (hard)
This problem is the continuation of problem <http://www.mathworks.com/matlabcentral/cody/problems/1769-singularity-2-0-easier Si...

12 días hace

Resuelto


singularity 2.0 (easier)
If you have been in Cody long enough you have probably run across some badly constructed problems and test suites. This prob...

12 días hace

Resuelto


Now!
I said now!

12 días hace

Resuelto


Leave a thumb-up to pass
Just leave a Like, and a comment if you wish. Then wait, and submit.

12 días hace

Resuelto


Get me! v3
A harder version of Get me! I *think* I only left one door open.. we could be close to a perfect anti-cheating engine,

12 días hace

Resuelto


Get me! v2
Exploiting cody v2

12 días hace

Resuelto


Get me!
Inspired by Now! problems. Do your best!

12 días hace

Resuelto


What? Paradox?
What's going on here?

12 días hace

Resuelto


Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.

12 días hace

Resuelto


How many ways to write a number
Given two positive numbers n and k, where n>=k. In how many ways can we write n as sum of k positive numbers. Same numbers but d...

12 días hace

Resuelto


Choose group with people
How many ways can you choose n groups of n people from n^2 people, assuming the groups are distinct? The number of people is gi...

12 días hace

Resuelto


"Bubblegum, Bubblegum, in a dish; How many pieces do you wish?"
The child's game "bubblegum, bubblegum, in a dish; how many pieces do you wish?" is a way of eliminating players until a single ...

12 días hace

Resuelto


Laguerre Polynomials
Create a square lower diagonal matrix containing the first n Laguerre Polynomial coefficients. For n=6, the Laguerre Matrix is: ...

12 días hace

Resuelto


Given a Polyshape_01 (ps) Return its Perimeter, Area, and Centroid.
Return the perimeter (P) of a polyshape object, which is the sum of the lengths of its boundaries. Return the total area (A) of...

12 días hace

Resuelto


4 Digit Sequence Repetitions
Given a 4 digit integer, a sequence can be created such that the next digit in the sequence is the ones digit from the sum of th...

12 días hace

Resuelto


Alternative Dimensions
Given a multidimensional matrix, transform the matrix so the dimensions are in the order given by variable ord. For example, giv...

12 días hace

Resuelto


ICFP 2024 Programming Contest June 28 thru July 1
This is to announce the annual ICFP programming contest for 2024. The ICFP 2024 homepage link is ICFP 2024 . Registration will...

12 días hace

Resuelto


Angle between two vectors
Given 2 pairs of _cartesian co-ordinates_, determine the angle between the 2 vectors formed by the _points_ and the _origin_. An...

12 días hace

Resuelto


Write a function that gives the ReLU of the input.
The ReLU function is given by, In here, x input can be a scalar, vector or a matrix.

12 días hace

Resuelto


List odd twin composites
Twin primes, or prime numbers that differ by 2 (e.g., 17 and 19, 59 and 61, or 191 and 193), are the subject of several Cody pro...

16 días hace

Resuelto


List the semiprimes
A semiprime number—or a 2-almost prime—is the product of two prime numbers. The numbers and are semiprimes, but and are not....

16 días hace

Cargar más