문제를 풀었습니다


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

3년 초과 전

문제를 풀었습니다


GJam March 2016 IOW: Polynesiaglot Small
This Challenge is derived from <http://code.google.com/codejam/contest/8274486/dashboard#s=p2 GJam March 2016 Annual I/O for Pol...

3년 초과 전

문제를 풀었습니다


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

3년 초과 전

문제를 풀었습니다


Resistance of a light bulb
The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....

3년 초과 전

문제를 풀었습니다


Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...

3년 초과 전

문제를 풀었습니다


OXO counting
Count the number of occurrences of "OXO" in rows, columns, diagonals and anti-diagonals. Example: >> board = ['OOX' ...

3년 초과 전

문제를 풀었습니다


Find the repeating elements and repetitions of a row vector.
So let's say that x is a vector, for example, x = [4, 4, 5, 5, 5, 6, 7, 7,8, 8, 8, 8] Now we want to get the following two ve...

3년 초과 전

문제를 풀었습니다


Easy Sequences 68: Factorial Rectangles
I'll celebrate my comeback to Cody with this one easy problem... ---------------- The rectangle below is special: ...

3년 초과 전

문제를 풀었습니다


Magical Land
Mother Earth has gifted humanity a magical land to help all life on earth, in the shape of a n-sided regular polygon. You, bein...

3년 초과 전

문제를 풀었습니다


Which Char Array has the greater decimal value
Given to character arrays, determine which array has the greater decimal value. 'Hello' --> 72 + 101 + 108 + 108 + 111 = 500 ...

3년 초과 전

문제를 풀었습니다


Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...

3년 초과 전

문제를 풀었습니다


Pascal's triangle
<https://en.wikipedia.org/wiki/Pascal%27s_triangle> if the order is: x = 3; the output will be: output = [0 0 0 1 0 0 ...

3년 초과 전

문제를 풀었습니다


increasing sequences
Given a string of digits, insert commas to create a sequence of strictly increasing numbers so as to minimize the magnitude of t...

3년 초과 전

문제


Generate Bernoulli polynomials
The Bernoulli polynomial is a polynomial of order with the properties that and for and . Therefore, , , , etc. Notice ...

3년 초과 전 | 1 | 솔버 수: 9

문제를 풀었습니다


Find the standard deviation of an array
given an array, find it's standard deviation without using the std() function. Use sample formula (n-1) for standard deviation a...

3년 초과 전

문제를 풀었습니다


Chain multiplication - 03
Following up the problem in 55305, you found the minimum number of multiplications needed to multiply a chain of matrices. In ...

3년 초과 전

문제를 풀었습니다


Sort Non-zeros
Consider 0s in a vector creates a break-point. sort all the sub-arrays created by those break points. For example, a = [3, 4, 1...

3년 초과 전

문제를 풀었습니다


Chain multiplication - 01
Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

3년 초과 전

문제를 풀었습니다


Cyclotomic polynomial
Given a Natural number (N), return the corresponding Cyclotomic Polynomial.

3년 초과 전

문제를 풀었습니다


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제


Count estrangements
Recently I made a puzzle for my wife that included a cryptogram, which involves an arrangement of the letters A through Z. I use...

3년 초과 전 | 1 | 솔버 수: 9

문제를 풀었습니다


Nth Order Polynomial Regression
Inputs: -two vectors x and y (row or column) -order of polynomial, p Outputs: -vector of coefficients [b0 b...

3년 초과 전

문제를 풀었습니다


Parametric Array
Create a row vector, 1xN (Integer, >1), such that the mean of the vector is M (Real number) and the standard deviation of the ...

3년 초과 전

문제


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

3년 초과 전 | 0 | 솔버 수: 14

문제를 풀었습니다


Nodal Voltage of Resistor Ladder Network
* You have a bunch (an even number N) of identical resistors (each R ohms), a good battery (V volts) and a high impedance voltme...

3년 초과 전

문제를 풀었습니다


How many palindromes?
* Given a set of letters, count all possible palindromes, using all of those letters. * For example, if the set is {'A' 'A' 'A'...

3년 초과 전

문제를 풀었습니다


Oxidation State
* In some chemical compounds, the oxidation state of each atom of hydrogen H is +1. * In some chemical compounds, the oxidation...

3년 초과 전

문제


Determine whether one vector is a subset of another
While bumbling through a pair of problems in the Number Theory group, I wrote code to determine whether a vector is a subset of ...

3년 초과 전 | 6 | 솔버 수: 14

문제를 풀었습니다


Parcel Routing
Given a matrix that represent the distance along highways between major cities numbered 1 to _N_, provide the path and shortest ...

3년 초과 전

더 보기