Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M.
...
6 years 前
已解决
Write c^3 as sum of two squares a^2+b^2
write c^3 as sum of two squares a^2+b^2. a and b must be integer and greater than zero.
For example
5^3 = 2^2 + 11^2
5...
6 years 前
已解决
A Simple Tide Gauge with MATLAB
You are standing in a few inches of sea water on a beach.
You are wondering whether the high tide is coming soon or it has ju...
The Glass Half Full
Identical glasses are placed in a triangular tower structure, such that the top level (L = 1) comprises one glass, the next leve...
Acid and water
Assume that there is a 100 liter tank.
It is initially filled with just distilled water.
It is continuously drained at R...
6 years 前
已解决
The 5th Root
Write a function to find the 5th root of a number.
It sounds easy, but the typical functions are not allowed (see the test su...
6 years 前
已解决
5 Prime Numbers
Your function will be given lower and upper integer bounds. Your task is to return a vector containing the first five prime numb...
6 years 前
已解决
Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer whi...
6 years 前
已解决
Basic electricity in a dry situation
This is a very hypothetical situation between two individuals in a very dry atmosphere.
He came running in rubber boots when...
6 years 前
已解决
Energy of a photon
Given the frequency F of a photon in giga hertz.
Find energy E of this photon in giga electron volts.
Assume h, Planck's ...
6 years 前
已解决
How to subtract?
* Imagine you need to subtract one number from another using MATLAB.
* You will not be using eval for this task.
* Given two A...
6 years 前
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
Non-scor...