Risolto


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

circa un anno fa

Risolto


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

circa un anno fa

Risolto


Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

circa un anno fa

Risolto


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

circa un anno fa

Risolto


Find a subset that divides the vector into equal halves
Given a vector x, return the indices to elements that will sum to exactly half of the sum of all elements. Example: Inpu...

circa un anno fa

Risolto


How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

circa un anno fa

Risolto


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

circa un anno fa

Risolto


Simple Circuit of Resistors

circa un anno fa

Risolto


Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

circa un anno fa

Risolto


How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

circa un anno fa

Risolto


Flag largest magnitude swings as they occur
You have a phenomenon that produces strictly positive or negative results. delta = [1 -3 4 2 -1 6 -2 -7]; Marching thr...

circa un anno fa

Risolto


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

circa un anno fa

Risolto


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

circa 2 anni fa

Risolto


Factorial

circa 2 anni fa

Risolto


F.R.I.E.N.D.S

circa 2 anni fa

Risolto


Size

circa 2 anni fa

Risolto


Sudoku

circa 2 anni fa

Risolto


Card games

circa 2 anni fa

Risolto


Real

circa 2 anni fa

Risolto


PIN code

circa 2 anni fa

Risolto


NaN

circa 2 anni fa

Risolto


Insert zeros II

circa 2 anni fa

Risolto


size

circa 2 anni fa

Risolto


imaginary

circa 2 anni fa

Risolto


Swap rows

circa 2 anni fa

Risolto


Row sum

circa 2 anni fa

Risolto


Row avg

circa 2 anni fa

Risolto


Diagonal Prod

circa 2 anni fa

Risolto


find the height

circa 2 anni fa

Risolto


Sort accordingly

circa 2 anni fa

Carica altro