문제를 풀었습니다


Vigenere cipher - be like Sherlock Holmes!
You're a young detective. Every detective needs a function to decrypt a vigenère cipher. It's a modification of a caesar cipher....

거의 5년 전

문제를 풀었습니다


Big numbers, least significant digits
Given two numbers, x and n, return the last d digits of the number that is calculated by x^n. In all cases, d will be the number...

거의 5년 전

문제를 풀었습니다


Text File Read: 64 bit data set
This Challenge is to read a text file that has vary large integers up to 2e18, typical for <http://code.google.com/codejam/conte...

거의 5년 전

문제를 풀었습니다


Champernowne Constant
The <http://en.wikipedia.org/wiki/Champernowne_constant Champernowne constant> is a real number whose digits in decimal represen...

거의 5년 전

문제를 풀었습니다


P-smooth numbers
This Challenge is to find <https://en.wikipedia.org/wiki/Smooth_number P-smooth number> partial sets given P and a max series va...

거의 5년 전

문제를 풀었습니다


Smallest distance between a point and a rectangle
Given two points *x* and *y* placed at opposite corners of a rectangle, find the minimal euclidean distance between another poin...

거의 5년 전

문제를 풀었습니다


Great Circle Distance
Find shortest between two points on a ball given their azimuthal and polar angles (in degrees) as well as the radius of the sphe...

거의 5년 전

문제를 풀었습니다


Increase monotonically
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

거의 5년 전

문제를 풀었습니다


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

거의 5년 전

문제를 풀었습니다


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

거의 5년 전

문제를 풀었습니다


Modulation index
The amplitude of the carrier signal is 2V and the amplitude of the modulating signal is 8V. Find its modulation index.

거의 5년 전

문제를 풀었습니다


~(*|/)
Return three quarters of n without using addition, subtraction, multiplication or division.

거의 5년 전

문제를 풀었습니다


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

거의 5년 전

문제를 풀었습니다


Make a checkerboard matrix (★★★★★)
(copy of Prob. 4) Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1...

거의 5년 전

문제를 풀었습니다


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

거의 5년 전

문제를 풀었습니다


Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...

거의 5년 전

문제를 풀었습니다


lb to kilogram
convert lb to kilogram units, easy

거의 5년 전

문제를 풀었습니다


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

거의 5년 전

문제를 풀었습니다


Funny problems
Generate the following vector: if n=1 then q=1; elseif n=2 then q=[2 2 1]; elseif n=3 then q=[3 3 3 2 2 1]; ... end

거의 5년 전

문제를 풀었습니다


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

거의 5년 전

문제를 풀었습니다


Vandermonde Matrix
Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column i...

거의 5년 전

문제를 풀었습니다


Calculate correlation.
There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

거의 5년 전

문제를 풀었습니다


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

거의 5년 전

문제를 풀었습니다


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

거의 5년 전

문제를 풀었습니다


Sum of self power series
The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

거의 5년 전

문제를 풀었습니다


World Cup 2018 Prediction!
Which team will be the winner?

거의 5년 전

문제를 풀었습니다


divide by 5

거의 5년 전

문제를 풀었습니다


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

거의 5년 전

문제를 풀었습니다


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

거의 5년 전

문제를 풀었습니다


intervals
Write a function that takes an interval from a to b, and divides it into 6 parts.

거의 5년 전

더 보기