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

oltre 2 anni 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 ...

oltre 2 anni 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 ...

oltre 2 anni 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 ...

oltre 2 anni 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...

oltre 2 anni 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...

oltre 2 anni 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 ...

oltre 2 anni fa

Risolto


Simple Circuit of Resistors

oltre 2 anni 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 ...

oltre 2 anni 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 ...

oltre 2 anni 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...

oltre 2 anni 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 ...

oltre 2 anni 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 ...

oltre 3 anni fa

Risolto


Factorial

oltre 3 anni fa

Risolto


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

oltre 3 anni fa

Risolto


Size

oltre 3 anni fa

Risolto


Sudoku

oltre 3 anni fa

Risolto


Card games

oltre 3 anni fa

Risolto


Real

oltre 3 anni fa

Risolto


PIN code

oltre 3 anni fa

Risolto


NaN

oltre 3 anni fa

Risolto


Insert zeros II

oltre 3 anni fa

Risolto


size

oltre 3 anni fa

Risolto


imaginary

oltre 3 anni fa

Risolto


Swap rows

oltre 3 anni fa

Risolto


Row sum

oltre 3 anni fa

Risolto


Row avg

oltre 3 anni fa

Risolto


Diagonal Prod

oltre 3 anni fa

Risolto


find the height

oltre 3 anni fa

Risolto


Sort accordingly

oltre 3 anni fa

Carica altro