문제를 풀었습니다


Legend of Zelda - Rupee Count
Rupees are the main currency in The Legend of Zelda games. The value of each rupee is determined by its color. Unfortunately, th...

9개월 전

문제를 풀었습니다


Calculator spelling - Letters to Numbers
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

9개월 전

문제를 풀었습니다


Calculator spelling - Numbers to Letters
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

9개월 전

문제를 풀었습니다


Adding Cells with numbers defined as strings
Given a cell, with strings representing numbers, add each value. For example: a = {'9','33'}; the output should be: ...

9개월 전

문제를 풀었습니다


Beauty of Parentheses
Given a string consisting of closed parentheses, form a string array in the following way so that the orders of these parenthese...

9개월 전

문제를 풀었습니다


Genome decoding
Inspired by a question on the answer forum: You are given a matrix of 8-bit integers which encodes a genome. Each integer can...

9개월 전

문제를 풀었습니다


Find the longest match inside two strings
Given two strings, find the longest string which is contained within both strings. e.g. the longest string that is contained ...

9개월 전

문제를 풀었습니다


Broken numlock key, oppps !
The numlock key on my computer is pressed and is now broken, so I cant press it to switch off the numlock mode. And hence I am n...

9개월 전

문제를 풀었습니다


deconvolution
* Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients. * In this example, the polynimial is 1*x^3...

9개월 전

문제를 풀었습니다


Determining if a Degree Sequence is Potentially a Graph
A degree sequence is a list of numbers representing the degrees of vertices in a graph. While it is difficult to tell if a graph...

9개월 전

문제를 풀었습니다


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

9개월 전

문제를 풀었습니다


polar inertia
given locations of a set of unit masses on complex plane, find polar moment of inerta about the origin. for example output 4 if ...

9개월 전

문제를 풀었습니다


How many revolutions around the earth
Calculate how many revolutions you will around the earth till 1/1/2100. Given the birhdate find your age in number of days on 1...

9개월 전

문제를 풀었습니다


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

9개월 전

문제를 풀었습니다


Magnitude with vargin
Magnitude with an undefined amount of arguments

9개월 전

문제를 풀었습니다


Matrix symmetry
Given a matrix A = [1 2 3; 4 5 6] Flip it horizontally and vertically to obtain a complete reversal of both rows and columns. ...

9개월 전

문제를 풀었습니다


Guess the Coefficients!
Given a polynomial p known to have positive integer coefficients, deduce the values of the coefficients. For example: p = ...

9개월 전

문제를 풀었습니다


Is it the answer to life the universe and everything?
The answer to life the universe and everything is 42, but this is naturally in base 13. Unfortunately, MATLAB is in base 10, so ...

9개월 전

문제를 풀었습니다


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

9개월 전

문제를 풀었습니다


Find sum of alternate numbers in a vector
Find sum of alternate numbers in a vector starting from index 1

9개월 전

문제를 풀었습니다


Find cross product of 2 vectors
Find cross product of 2 vectors

9개월 전

문제를 풀었습니다


Find duplicate number from a vector of size n + 1 containing numbers from 1:n
From a given vector of size n + 1, return the duplicate number. Constraints The vector can only contain numbers from 1 to ...

9개월 전

문제를 풀었습니다


Multiply by 5
Given an input x (scalar), multiply it by 5.

9개월 전

문제를 풀었습니다


Compute the dilation of a binary image
A basic operation in image analysis is the dilation. Given an image where each pixel is either on or off (black/white, true/fals...

9개월 전

문제를 풀었습니다


Esoteric Trigonometry
From Wikipedia: "All of the trigonometric functions of an angle θ can be constructed geometrically in terms of a unit circle cen...

9개월 전

문제를 풀었습니다


LASER Tracker - Mirror Distance and Angle
Determine the mirror's distance and relative angle to the LASER Tracker given the distances to a reference SMR (Spherical Mounte...

9개월 전

문제를 풀었습니다


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

9개월 전

문제를 풀었습니다


Solitaire Cipher
Implement the <http://en.wikipedia.org/wiki/Solitaire_(cipher) solitaire cipher>. Since this is from Wikipedia, I am capturin...

9개월 전

문제를 풀었습니다


Easy Function
Use this function to earn some points (hit submit): function y = your_fcn_name(x) y = x^2 + 10; end

9개월 전

문제를 풀었습니다


"Power matrix" of two vectors
Given two row vectors x,y of lengths m and n (respectively), create an m x n matrix whose i,j entry is x(i)^y(j).

9개월 전

더 보기