Gelöst


Find out next state of JK Flip flop.
Find out next state (NS) of JK Flip flop based on previous state (PS), inputs. Please refer JK Flip flop theory <http://...

mehr als 11 Jahre vor

Gelöst


Error handling
If the input is a negative number, generate an error. Otherwise, return the number.

mehr als 11 Jahre vor

Gelöst


Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

mehr als 11 Jahre vor

Gelöst


Divisors for big integer
Inspired by Problem 1025 and Project Euler 12. Given n, return the number y of integers that divide N. For example, with ...

mehr als 11 Jahre vor

Gelöst


Find the Connecting Path
Here is a matrix x x = [7 6 8 5 7 2 4 5 1 3 0 0 0 7 7 7 7 7 0 0 0 0 0 0 0 0 0 0 0 5 5 5 5 5 0 0 0 0 0 0...

mehr als 11 Jahre vor

Gelöst


self description 2.0
New (and way easier) hacking problem built upon <http://www.mathworks.com/matlabcentral/cody/problems/1969 Alfonso's problem 196...

mehr als 11 Jahre vor

Gelöst


resistor ladder
* You have a bunch (an odd number N) of identical resistors (each R ohms), a good battery (V volts), and a high impedance voltme...

mehr als 11 Jahre vor

Gelöst


GJam 2011 Africa Qualifier B: Optimum Profit
This Challenge is derived from <http://code.google.com/codejam/contest/837485/dashboard#s=p1 GJam 2011 Africa: Investing at the ...

mehr als 11 Jahre vor

Gelöst


GJam 2011 Africa Qualifier C: House, maximum area rectangle
This Challenge is derived from <http://code.google.com/codejam/contest/837485/dashboard#s=p2 GJam 2011 Africa: Building a House>...

mehr als 11 Jahre vor

Gelöst


Graph Algorithms - 2 : Chromatic Number
Chromatic number of a graph is the minimum number of distinct colors required to color all the vertices of the graph such that n...

mehr als 11 Jahre vor

Gelöst


Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

mehr als 11 Jahre vor

Gelöst


Let's get back to school: create mixed numbered fraction
A fractional number can be represented as mixed number. A "mixed number" consists of an integer followed by a proper fraction...

mehr als 11 Jahre vor

Gelöst


Integer Sequence - II : New Fibonacci
Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

mehr als 11 Jahre vor

Gelöst


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

mehr als 11 Jahre vor

Gelöst


Function writing test
Tests your ability to write a trivial function.

mehr als 11 Jahre vor

Gelöst


Kurchan 5x5 - Optimal Score
Related to Problems 1646 and 2650, but bigger. Technically, all you need to do for this Cody problem is input a 5x5 matrix conta...

mehr als 11 Jahre vor

Problem


Kurchan 5x5 - Optimal Score
Related to Problems 1646 and 2650, but bigger. Technically, all you need to do for this Cody problem is input a 5x5 matrix conta...

mehr als 11 Jahre vor | 1 | 44 Lösungsvorschläge

Gelöst


Get top 5 Cody Player Emails Automatically
Yes, this is a little scary and also entirely possible to do in MATLAB, so let's do it! Looking at the list of the players <h...

mehr als 11 Jahre vor

Gelöst


Find out base of following arithmetic operation
Find out base of the following arithmetic operation. So for example 41/3=13 is true in base 8. Another example: 23+44+14...

mehr als 11 Jahre vor

Problem


Kurchan 4x4 - Optimal score
Related to Problem 1646, but bigger. Technically, all you need to do for this Cody problem is input a 4x4 matrix containing the...

mehr als 11 Jahre vor | 2 | 42 Lösungsvorschläge

Gelöst


Ulam spiral 2: The revenge
Starting from the problem <https://www.mathworks.com/matlabcentral/cody/problems/2644-the-ulam-matrix>, transform the Ulam Matri...

mehr als 11 Jahre vor

Gelöst


The Ulam Matrix
The Ulam spiral is simple to describe. On a gridded piece of paper, write down the number 1. Then write successive integers as y...

mehr als 11 Jahre vor

Gelöst


Unique: Enhanced Performance - Avoiding Memory Crash
The Challenge is to create the unique array for a long and wide array. Difficulties are that the normal unique(a,'rows') func...

mehr als 11 Jahre vor

Gelöst


expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

mehr als 11 Jahre vor

Gelöst


How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...

mehr als 11 Jahre vor

Gelöst


Unique - Very Very Large Numbers
Given a vector column, with some very large numbers, create the ascending sort and unique vector. *Input:* A (column vector)...

mehr als 11 Jahre vor

Gelöst


How unique?
Sometimes, when we check unique entries of vector we would like to know how many times each value occurs. Given vector of num...

mehr als 11 Jahre vor

Gelöst


Implement full adder circuit
Implement full adder circuit as given in <http://en.wikipedia.org/wiki/Adder_(electronics)> Inputs signals are a, b and ...

mehr als 11 Jahre vor

Gelöst


[Thermodynamics] Estimate boiling point of n-alkanes
Estimate the boiling point (in Kelvin) of n-Alkanes (n >= 2) using the group contribution method of Joback --- ...

mehr als 11 Jahre vor

Gelöst


Higher! Lower!
My kids have started to play the "I'm thinking of a number between X and Y" game in the car on trips to and from their swim less...

mehr als 11 Jahre vor

Mehr laden