문제를 풀었습니다


Number Power
Raise a number to itself.

3개월 전

문제를 풀었습니다


Cannibal eating odd and even numbered men
There are N men in a queue. A cannibal eats either all odd-numbered or all even-numbered men in the queue at a time. In the fi...

3개월 전

문제를 풀었습니다


Big Integer Sqrt
You will be given a big integer, you should return the square root of it. input: '16' output: '4' have fun!

3개월 전

문제를 풀었습니다


Find The Difference
Vector x is given.calculate the difference between the biggest and the smallest number that we can create from elements of x. fo...

3개월 전

문제를 풀었습니다


Project Euler: Problem 14 Longest Collatz sequence(harder version)
This problem is a harder version of "Problem 44448. Project Euler: Problem 14 Longest Collatz sequence", because of time limits....

3개월 전

문제를 풀었습니다


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

3개월 전

문제를 풀었습니다


Solve the 2-norm Regularization Problem
In data fitting, regularization is a technique to stabilize an ill-posed problem. <https://en.wikipedia.org/wiki/Tikhonov_regula...

3개월 전

문제를 풀었습니다


Aztec Diamond domino tilings
Consider a Cartesian grid, with verteces at integer x and y values, where every four vertices around a vacant space define a uni...

3개월 전

문제를 풀었습니다


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

3개월 전

문제를 풀었습니다


Prime Product
My professor has given a sequence of N numbers as a1, a2, ..., aN and asked me to find the smallest possible value of ai * aj su...

3개월 전

문제를 풀었습니다


how many of the entries are positive?
Given x= sin(linspace(0,10*pi,100)), how many of the entries are positive?

3개월 전

문제를 풀었습니다


count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

3개월 전

문제를 풀었습니다


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

3개월 전

문제를 풀었습니다


What score did they give?
Your task in this problem is to figure out the most recent score, |S|, submitted. <<https://upload.wikimedia.org/wikipedia/...

3개월 전

문제를 풀었습니다


Monte Carlo integration: area of a polygon
The area of a polygon (or any plane shape) can be evaluated by <https://www.mathworks.com/matlabcentral/cody/problems/179 Monte ...

3개월 전

문제를 풀었습니다


Is input the global variable z?
When the input is certainly not the global variable |z|, your function must return |false|. Otherwise return |true|. All input...

3개월 전

문제를 풀었습니다


Comparison of floating-point numbers (singles)
Floating-point numbers cannot generally be represented exactly, so it is usually inappropriate to test for 'equality' between tw...

3개월 전

문제를 풀었습니다


Comparison of floating-point numbers (doubles)
<https://au.mathworks.com/help/matlab/matlab_prog/floating-point-numbers.html Floating-point numbers> cannot generally be repres...

3개월 전

문제를 풀었습니다


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

3개월 전

문제를 풀었습니다


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

3개월 전

문제를 풀었습니다


Basic Monte Carlo Simulation
Input is a matrix including service time and probability of service time. Another input is a random number. Function should tran...

3개월 전

문제를 풀었습니다


Perfect Square
Determine if the input is a perfect square (square of an integer) or not. Example - If input is 25(==5^2), return 1. If input...

3개월 전

문제를 풀었습니다


Calculate time taken by light to reach earth surface
We know the time(seconds) taken by light to reach surface of earth. What if the distance varies yearly or source of light moves ...

3개월 전

문제를 풀었습니다


Find prime number couples
Given a vector a, which will always contain at least one pair of prime numbers couple, return a matrix called 'couple' in which ...

3개월 전

문제를 풀었습니다


Second Diagonal
Transpose the matrix from it's second diagonal.

3개월 전

문제를 풀었습니다


find number of times of occurrence of the most frequent number in a row vector
In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

3개월 전

문제를 풀었습니다


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

3개월 전

문제를 풀었습니다


Dial Up
Each number on telephone keypads, except 0 and 1, corresponds to a set of uppercase letters as shown in this list: 2 ABC, 3 DEF...

3개월 전

문제를 풀었습니다


Kurosu solver
This problem is related to <https://www.mathworks.com/matlabcentral/cody/problems/44657-kurosu-checker Problem 44657>. The ga...

3개월 전

문제를 풀었습니다


Kurosu checker
The game of Kurosu is simple. A square grid contains cells that can be filled with either a 'X' or an 'O', similarly to a tic-ta...

3개월 전

더 보기