Risolto


Sum the Infinite Series II
For any x in the range 0 < x and x < 2*pi radians, find the sum of the following infinite series: c = 1 + 1/2*cos(x) + 1/2*3/4...

oltre 4 anni fa

Risolto


Propagate the effects of a blockage in a chemical plant
From the perspective of flow, a chemical plant can be described by a collection of _nodes_ and _edges_. _Nodes_ are points where...

oltre 4 anni fa

Risolto


The Google Interview: Two Eggs Problem
Consider the following problem, a popular Google interview question: A firm has invented a super-strong egg. For publicity pu...

oltre 4 anni fa

Risolto


List the households affected by leaks in water distribution
Consider the following water distribution network, where water is pumped uni-directionally from left to right: 8...

oltre 4 anni fa

Risolto


Yoonir - 03
Find the area of a seven-pointed star inscribed in a circle of radius r.

oltre 4 anni fa

Risolto


Maya - 03
Following up on the previous two problems, now you've to add or subtract two Maya numerals. The 3rd input will be a function ...

oltre 4 anni fa

Risolto


Maya - 02
<https://en.wikipedia.org/wiki/Maya_numerals> Prev. prob. - <https://www.mathworks.com/matlabcentral/cody/problems/45375-maya...

oltre 4 anni fa

Risolto


Maya - 01
Given a number, convert it into the Maya numeral system. <https://en.wikipedia.org/wiki/Maya_numerals> For example, n...

oltre 4 anni fa

Risolto


Weighted Convolution
Given two input vectors x = [x_1, x_2, ..., x_K] and y = [y_1, y_2, ..., y_K] of equal length, compute the weighted convolution ...

oltre 4 anni fa

Risolto


Weighted Names
A cell is given which contains several names. You've to return those names sorted by their weight. Weight is to be calculate...

oltre 4 anni fa

Risolto


Accurate Division
Given three integers x, y and d, return x/y (as a string) to d significant digits. Remove leading and trailing zeros. Example...

oltre 4 anni fa

Risolto


Determining if a Degree Sequence is Potentially a Graph
A degree sequence is a list of numbers representing the degrees of vertices in a graph. While it is difficult to tell if a graph...

oltre 4 anni fa

Problema


Spell musical triads
Chords form the basis of harmony in music. The most basic chords are triads, or groups of three notes. They are specified by thr...

oltre 4 anni fa | 1 | 5 risolutori

Risolto


Valid Chess Moves
Using standard Algebraic notation ('' for a pawn), given previous move and a next move, output true if it is a valid move or fal...

oltre 4 anni fa

Risolto


Peg Solitaire - Get Possible Moves
About Peg Solitaire. Consider following initial board; (1) indicates there is a peg and (0) indicates empty holes. For thi...

oltre 4 anni fa

Risolto


GJam: 2013 China Event: Cannon Angle
This Challenge is derived from <http://code.google.com/codejam/contest/2933486/dashboard#s=p1 GJam 2013 China Captain Hammer>. T...

oltre 4 anni fa

Risolto


Is this group simply connected?
Given connectivity information about a graph, your job is to figure out if the graph is fully connected. You are given a list of...

oltre 4 anni fa

Risolto


Matrix Transposition
Given a matrix and an index, perform matrix transposition as follows - Replace non-corner value of ith ring from outside, with...

oltre 4 anni fa

Risolto


SLP Calculation
The SLP Calculation Challenge is to implement SLP sequences and output the result as a string. SLP, Straight Line Program, creat...

oltre 4 anni fa

Problema


Determine whether a number is practical
A number is practical if all smaller numbers can be written as a sum of the proper divisors of . The number 24 is practical bec...

oltre 4 anni fa | 3 | 11 risolutori

Risolto


Define an arithmetic sequence
Given three numbers n, a, and d, define an arithmetic sequence of n terms with a being the initial term of the sequence and d be...

oltre 4 anni fa

Problema


Solve an ODE: precocious pair’s porcine pursuit
In our previous encounters with Matilda and Labrun, the scintillating siblings collected candy wrappers, amused others with card...

oltre 4 anni fa | 0 | 6 risolutori

Risolto


Latest Question On Cody
Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.

oltre 4 anni fa

Risolto


Find the slope of a line that passes through two vectors
Given two vectors p1 and p2, return the slope of a line that passes through p1 and p2. Examples: Input [p1,p2] = deal([0,1],[...

oltre 4 anni fa

Problema


Generate the Figure-Figure sequence
After discussing Scott Kim’s FIGURE-FIGURE Figure (below) in Gödel, Escher, Bach, Douglas Hofstadter introduced an integer seque...

oltre 4 anni fa | 2 | 15 risolutori

Risolto


Ramanujan's Number
About 1729 1729 is the first positive integer which can be expressed as the sum of two positive cubes in two different ways. ...

oltre 4 anni fa

Risolto


Factor Digits
Check if a given number in an array of numbers is - Equidigital Number - A number that has the same number of digits as the num...

oltre 4 anni fa

Risolto


Cellular Automaton | Rule X
Cellular Automata (CA) provide a convenient way to represent many kinds of systems in which the values of cells (either 0 or 1) ...

oltre 4 anni fa

Risolto


Decimal Fraction to binary conversion
Given an fraction decimal number n, convert it to its equivalent binary number. If it is an infinite binary fraction, keep it...

oltre 4 anni fa

Risolto


Check Digit - 02
Given a list of ISBN's, check whether they're valid or not. Prev Prob - <https://www.mathworks.com/matlabcentral/cody/problem...

oltre 4 anni fa

Carica altro