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

mer än ett år 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. ...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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 ...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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 ...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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 ...

mer än ett år 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.

nästan 2 år 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.

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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]...

nästan 2 år 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]...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år 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.

nästan 2 år 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.

nästan 2 år ago | 1