解決済み


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

5年以上 前

解決済み


Integer Sequence - 1
Check the test suite to determine the relationship between input integer scalar and output integer scalar.

5年以上 前

解決済み


grazing cows
Here is a fun problem I encountered in high school. Two cows are grazing in an enclosed square-shaped field of side length s ...

5年以上 前

解決済み


Volume of Spherical Shell
In three-dimensional space, a spherical shell can be constructed from two concentric spheres. Determine the volume of a spheric...

5年以上 前

解決済み


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

5年以上 前

解決済み


Perimeter of a quadrilateral
There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...

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年以上 前

解決済み


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

5年以上 前

解決済み


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

5年以上 前

解決済み


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

5年以上 前

解決済み


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

5年以上 前

解決済み


Convert from integer to binary
if true % decimalToBinaryVector(x) end

5年以上 前

解決済み


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

5年以上 前

解決済み


~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

5年以上 前

解決済み


Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

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年以上 前

解決済み


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

5年以上 前

解決済み


Chicken Race
2 chickens, Pete and Fred, compete in a 100 meter race. Pete runs at a velocity of vp meter/second and Fred is slower, running ...

5年以上 前

解決済み


Problem 44444 !!! free beer everyone
just say hallelujah to solve this problem

5年以上 前

解決済み


select the primes of a vector
Find the prime numbers in a vector

5年以上 前

解決済み


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

5年以上 前

解決済み


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

5年以上 前

解決済み


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

5年以上 前

解決済み


Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

5年以上 前

解決済み


NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

5年以上 前

解決済み


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

5年以上 前

解決済み


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

5年以上 前

解決済み


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

5年以上 前

解決済み


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

5年以上 前

解決済み


Rankine to Celsius Converter
Given input R, degrees Rankine, convert into degrees Celsius.

5年以上 前

さらに読み込む