문제를 풀었습니다


Add the number of horizontal and vertical movements to each matrix element
Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement. E...

4년 초과 전

문제를 풀었습니다


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

4년 초과 전

문제를 풀었습니다


Draw 'Y'
Draw 'Y' in an x-by-x matrix (where x is odd and x >= 3) Examples: x = 3 y = [1 0 1 0 1 0 0 1 0] x = 5 y = [1...

4년 초과 전

문제를 풀었습니다


Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel? A vector R contains the resistances (in Ohm) of n resistors,...

4년 초과 전

문제를 풀었습니다


Total resistance of resistors in series
What is the total resistance of a number of resistors in series? A vector R contains the resistances (in Ohm) of n resistors, w...

4년 초과 전

문제를 풀었습니다


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

4년 초과 전

문제를 풀었습니다


Draw 'P' !!!
Draw a n by n matrix 'P' using 0s and 1s. (n is odd and greater than 4) if n=5 , then the output will be [1 1 1 1 1 1 0 0 0...

4년 초과 전

문제를 풀었습니다


remove nans fast
There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

4년 초과 전

문제를 풀었습니다


UICBioE240 problem 1.11
Store a series of numbers into a 4 by 4 matrix, starting with the first few positions going right and down, and leaving the rest...

4년 초과 전

문제를 풀었습니다


Easy Sequences 23: Hat Guessing Game!
Consider the following Game Show: Hats, with numbers written on each, were placed on the heads of the participants. Participant...

4년 초과 전

문제를 풀었습니다


Draw matrix 'Swiss flag'( Euro 2020)
Draw a x-by-x matrix 'Swiss flag' using '0' and '1'.(x is odd and bigger than 4) Example x=5 ...

4년 초과 전

문제를 풀었습니다


determine the sum of decimal part for given matrix
determine the sum of fraction part for the given matrix

4년 초과 전

문제를 풀었습니다


Easy Sequences 1: Find the index of an element
The nth element of a series is defined by: . Obviously, the first element . Given the nth element , find the value of the corre...

4년 초과 전

문제를 풀었습니다


Draw a x-by-x matrix 'Denmark flag'(Euro(2020)
Draw a x-by-x matrix 'Denmark flag' using '4' and '1'.(x is odd and bigger than 4) Number 4: Caption S.Kjær and number 1: K.S...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Surface Fit z(x,y)
Given three vectors x,y,z. Find four coefficients c = [cxx cxy cyy c00], such that z = cxx*x.^2+cxy*x.*y+cyy*y.^2+c00. For e...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Gallery function, learning
write a Function, edit something or Add something that give us like the following for random n: n=2 ans= [ 0 1 ...

대략 5년 전

문제를 풀었습니다


Where's Waldo?
Find the string 'Waldo' in the character matrix given and return the indices of where you found him as a 4x2 matrix where the el...

대략 5년 전

문제를 풀었습니다


Minimum jumps to reach end of the array
Given an array of integers where each element represents the max number of steps that can be made forward from that element. Ste...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

문제를 풀었습니다


Crossing to Kissing - Untangle the Lines
Turn lines that cross into lines that kiss. You will be given two lines that cross at some point. Your job is to untangle the...

대략 5년 전

문제를 풀었습니다


Geometry: Find Circle given 3 Non-Colinear Points
*This Challenge is to determine the center and radius of a circle given three non-colinear points.* *Input:* Points *Outpu...

대략 5년 전

문제를 풀었습니다


Opposite point of the earth, what is the antipodal of a point ?
Given two strings(lat and long) that represent the geographic coordinates of a point in the earth, you have to find out what is ...

대략 5년 전

문제를 풀었습니다


Given a base n, find the y values less or equal than 100(without 1), such that they will never produce a periodic number if we divide any whole number between some of them
A periodic number depends on the base b where we are working. So, for example the number 2/3 in decimal base is periodic(0.666...

대략 5년 전

문제를 풀었습니다


Get the variable value from a string and generate sum
Get the variable value from a string. Example. x = 'A=10' y = 'B=20' Result = (x+y) Result = 30

대략 5년 전

문제를 풀었습니다


Calculate the similarity between DNA sequences

대략 5년 전

문제를 풀었습니다


CowBoy
A group of cowboys standing in circle form. They have one gun. The first cowboy shoot the cowboy beside him (second one) and giv...

대략 5년 전

문제를 풀었습니다


jogging?
Imagine x-y coordinate system and you are at the origin and your partner is on the x-axis at some small distance (d) away from y...

대략 5년 전

문제를 풀었습니다


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

대략 5년 전

더 보기