문제를 풀었습니다


Minimal Waste Pouring ( Hard )
Everytime you perform Empty action, water is wasted. Instead of minimizing steps, find the path that minimizes the total volume ...

2개월 전

문제를 풀었습니다


The Classic 8-5-3 Sharing ( Medium )
You have 3 jugs with capacities [8,5,3]. The 8L jug, the others are empty: [8,0,0]. There is no tap and no drain. You can only p...

2개월 전

문제를 풀었습니다


Total Volume Goal ( Medium )
Usually, the target T must be in one jug. In this version, the target T is the sum of water in all N jugs. Example: C = [3,5], ...

2개월 전

문제를 풀었습니다


The Ultimate Water Challenge ( Expert )
Description: In the previous problems, you were given a target T and asked to find the minimum number of steps to reach it. ...

2개월 전

문제를 풀었습니다


The Generalized N-Jug Water Pouring Problem ( Hard )
Description: You are given N water jugs with maximum capacities specified in a vector C = [ c1, c2, c3,.., c_n]. Initially, all...

2개월 전

문제를 풀었습니다


Record the Actions ( Medium )
Find the minimum steps to get T units from jugs A and B. Return the sequence of actions as cell array of strings. Available act...

2개월 전

문제를 풀었습니다


Two Jugs: Minimum Steps ( Medium )
Following the first problem, now you need to find the shortest path. Given two jugs with capacities A and B, find the minimum nu...

2개월 전

문제를 풀었습니다


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

2개월 전

문제를 풀었습니다


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

2개월 전

문제를 풀었습니다


Sort the prime numbers in each row of a matrix
Considering a 3x3 matrix A, sort the prime numbers of each row in ascending order. For exemple: input A=[5 8 2 4; ...

2개월 전

문제를 풀었습니다


Vector LCM
Find Least Common Multiple of a given vector. Need general solution as the test suite will be expanded. Function Template: fu...

2개월 전

문제를 풀었습니다


Output a vector which is table of 9
Output a vector which is table of 9

2개월 전

문제를 풀었습니다


square a vector-Given the variable x as your input, square it and put the result in y.
function y = (x)squared y = x; end

2개월 전

문제를 풀었습니다


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

2개월 전

문제를 풀었습니다


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

2개월 전

문제를 풀었습니다


Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

2개월 전

문제를 풀었습니다


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

2개월 전

문제를 풀었습니다


Prime number removal
remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

2개월 전

문제를 풀었습니다


Sort vector by number of prime factors of each element
Sort a given array based on how many prime factors each term has. Sort from least to greatest and output original values. Ex: ...

2개월 전

문제를 풀었습니다


Variance computation (★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

2개월 전

문제를 풀었습니다


Angular Velocity

2개월 전

문제를 풀었습니다


provide the numerical answer to these number questions...
return a row matrix containing the sorted numbers which answer the following questions: a) what is the first Knuth number to...

2개월 전

문제를 풀었습니다


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

2개월 전

문제를 풀었습니다


Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


Ounces to Kilograms
convert ounces to kilograms, easy

2개월 전

문제를 풀었습니다


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

2개월 전

문제를 풀었습니다


Number Power
Raise a number to itself.

2개월 전

문제를 풀었습니다


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

2개월 전

문제를 풀었습니다


Card games

2개월 전

더 보기