문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


Simple Circuit of Resistors

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


Factorial

3년 초과 전

문제를 풀었습니다


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

3년 초과 전

문제를 풀었습니다


Size

3년 초과 전

문제를 풀었습니다


Sudoku

3년 초과 전

문제를 풀었습니다


Card games

3년 초과 전

문제를 풀었습니다


Real

3년 초과 전

문제를 풀었습니다


PIN code

3년 초과 전

문제를 풀었습니다


NaN

3년 초과 전

문제를 풀었습니다


Insert zeros II

3년 초과 전

문제를 풀었습니다


size

3년 초과 전

문제를 풀었습니다


imaginary

3년 초과 전

문제를 풀었습니다


Swap rows

3년 초과 전

문제를 풀었습니다


Row sum

3년 초과 전

문제를 풀었습니다


Row avg

3년 초과 전

문제를 풀었습니다


Diagonal Prod

3년 초과 전

문제를 풀었습니다


find the height

3년 초과 전

문제를 풀었습니다


Sort accordingly

3년 초과 전

더 보기