438 total contributions since 2011

EXPLORER

Professional Interests: Speech & Hearing

Solved

Pandigital Multiples of 11 (based on Project Euler 491)

A "Pandigital number of order X" is one that contains all of the numbers from 0 to X, but with no leading zeroes. If X>9, the c...

plus d'un an ago

Solved

Is this a valid Tic Tac Toe State?

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

Predicting life and death of a memory-less light bulb

You have a light bulb that can fail any moment according to the exponential probability distribution. At any moment, the pro...

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

How to subtract?

* Imagine you need to subtract a few numbers using MATLAB. * You will not be using eval for this task. * Given two ASCII strin...

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

An asteroid and a spacecraft

Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian coordinates...

presque 2 ans ago

Problem

An asteroid and a spacecraft

Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian coordinates...

presque 2 ans ago | 4

Problem

Acid and water

Assume that there is a 100 liter tank. It is initially filled with just distilled water. It is continuously tapped at R ...

presque 2 ans ago | 1

Problem

Predicting life and death of a memory-less light bulb

You have a light bulb that can fail any moment according to the exponential probability distribution. At any moment, the pro...

presque 2 ans ago | 1

Problem

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

presque 2 ans ago | 2

Problem

How to subtract?

* Imagine you need to subtract a few numbers using MATLAB. * You will not be using eval for this task. * Given two ASCII strin...

presque 2 ans ago | 5

Problem

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

presque 2 ans ago | 3

Problem

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

presque 2 ans ago | 6

Solved

Given a number N, find the smallest prime P>N

Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

presque 2 ans ago

Problem

Given a number N, find the smallest prime P>N

Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

presque 2 ans ago | 1

Solved

Calories in a slice of pizza?

The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

presque 2 ans ago

Problem

Calories in a slice of pizza?

The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

presque 2 ans ago | 0

Solved

Minimum possible M of the maximum side of a triangle of given area A.

Suppose a triangle has area A. Suppose it has three sides S1, S2, and S3. Suppose M = max([S1 S2 S3]). What is the minimum po...

presque 2 ans ago

Problem

Minimum possible M of the maximum side of a triangle of given area A.

Suppose a triangle has area A. Suppose it has three sides S1, S2, and S3. Suppose M = max([S1 S2 S3]). What is the minimum po...

presque 2 ans ago | 0

Solved

Check if any duplicates in your data

Given an array x, return a number n equal to the largest number of repetitions in your data. For example: If x=[1 2 3 6 8 4 9]...

presque 2 ans ago

Problem

Check if any duplicates in your data

Given an array x, return a number n equal to the largest number of repetitions in your data. For example: If x=[1 2 3 6 8 4 9]...

presque 2 ans ago | 0

Solved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

presque 2 ans ago

Solved

Find the outlier in a set of samples

Given an array x of numbers. Assumed that this array has one outlier. Find the position p and the value v of the outlier in this...

presque 2 ans ago

Problem

Find the outlier in a set of samples

Given an array x of numbers. Assumed that this array has one outlier. Find the position p and the value v of the outlier in this...

presque 2 ans ago | 0

Solved

Given n, create n random numbers such that their standard deviation is also n.

Given n, create n random numbers such that their standard deviation is also n.

presque 2 ans ago

Problem

Given n, create n random numbers such that their standard deviation is also n.

Given n, create n random numbers such that their standard deviation is also n.

presque 2 ans ago | 1