문제를 풀었습니다


NCHOOSEK - Time Optimization
*Input* * *V* —— Set of all choices, a vector of N, 1 < N < 100 * *K* —— Number of selected choices, a scalar, 0 <= K <=...

5년 초과 전

문제를 풀었습니다


determine amount cookies left
started with 3 cookies and you never ate any how many are left

5년 초과 전

문제를 풀었습니다


Project Euler: Problem 4, Palindromic numbers
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

5년 초과 전

문제를 풀었습니다


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

5년 초과 전

문제를 풀었습니다


Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

5년 초과 전

문제를 풀었습니다


Find the nearest prime
Given a positive integer 'n', the task is to find a prime number greater than or equal to 'n'. Example 1 If given 'n' is ...

5년 초과 전

문제를 풀었습니다


Let's create histogram data by yourself.
We'd like to create histogram data, which first column shows the data, and second column shows the frequency. input = [1, 2, ...

5년 초과 전

문제를 풀었습니다


A KING AND 100 PRISONERS

5년 초과 전

문제를 풀었습니다


Find the index of the first occurrence of a value in a matrix
Given a matrix of scalars, find the first occurrence of -1 in each column. Output NaN for a column which does not contain the va...

5년 초과 전

문제를 풀었습니다


Concatenate strings
concatenate a variable number of input strings to produce one outputstring

5년 초과 전

문제를 풀었습니다


The prisoner
"We want information, information, information." "Who are you?" Input can be a string or a number (array).

5년 초과 전

문제를 풀었습니다


Question 1
Implement a function named q1 with one input argument named n. This function should return the multiplication of all odd numbers...

5년 초과 전

문제를 풀었습니다


Count digits
Count total number of digits from 1 to n. * n=13 * output=17 since from [1-9] total 9 digits.[10-13] total 4*2=8 digits.

5년 초과 전

문제를 풀었습니다


Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

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년 초과 전

문제를 풀었습니다


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

5년 초과 전

문제를 풀었습니다


Four digit number ABCD reversal
write a MATLAB function to find the four-digit number ABCD when multiplied by 4 returns DCBA. The function takes an input x=4.

5년 초과 전

문제를 풀었습니다


Better Index Number
Let's say you want to save many, many files and append these files with a certain sortable index number. As you probably know, y...

5년 초과 전

문제를 풀었습니다


sumdigits
function [p1,p2] = goldbach(n) for p1 = 1:n if isprime(p1) p2 = n - p1; if isprime(p2) re...

5년 초과 전

문제를 풀었습니다


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

5년 초과 전

문제를 풀었습니다


how tall are you?
you can find the length wit this code.

5년 초과 전

문제를 풀었습니다


find the stepnumber?
you can find the stepnumber.

5년 초과 전

문제를 풀었습니다


Which one is More bigger?
we have two input like (x,y) our output (z) must wich one is bigger input.

5년 초과 전

문제를 풀었습니다


Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

5년 초과 전

문제를 풀었습니다


Find offset of an element of a multi dimensional matrix
For a given multi dimensional matrix and given element, find its offset from the 1st element. Return 0, if element is not fo...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Create a matrix with difference of each row of input matrix
With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

5년 초과 전

문제를 풀었습니다


Matrix rotation as per given angle
Given a user defined matrix and angle of rotation, rotate the elements of output matrix as clockwise or anti-clockwise. Angle wi...

5년 초과 전

문제를 풀었습니다


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

5년 초과 전

문제를 풀었습니다


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

5년 초과 전

더 보기