Solved


List the smallest numbers with n distinct prime factors
The author of a book I am reading asked a mathematician what it feels like to be sixty. He wrote He replied, “Sixty, sandwiched...

2 years ago

Solved


Find the position of planet in solarsystem
Write a funtion named *nthplanet* which takes name of the planet as input string and provides the position of the planet, starti...

2 years ago

Solved


The Deadly Sin
Melvyn and Banner are fighting over chocolates. Melvyn has X chocolates, while Banner has Y. Whoever has a lesser number of choc...

2 years ago

Solved


Are you more familiar with iteration methods or Linear Algebra? Let's see together.
Given a sum result *_x_* value of a *_N_* number of addends, build an array of _*N*_ elements _*y*_ such that the following equa...

2 years ago

Solved


Persistence will help you solve almost any problem.
Create a function without inputs that adds one to the output every time it is called. a = counterfun; disp(a) >> 1 ...

2 years ago

Solved


Jack's hand in "Titanic" ♤
Given a series of cards, return true if it's the famous hand. Note that i pretend that poker cards goes from 1 to 10 so be care...

2 years ago

Solved


Sky full of stars - 01
Draw a right triangle with asterisks of size n. For example, for n=5 '* ' '** ' '*** ' '**** ' ...

2 years ago

Solved


Determine connected components of a graph
Adjacency matrix of an undirected graph is given. Return the number of connected components in the graph.

2 years ago

Solved


Easy Sequences 23: Hat Guessing Game!
Consider the following Game Show: Hats, with numbers written on each, were placed on the heads of the participants. Participant...

2 years ago

Solved


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

2 years ago

Solved


Number Puzzles - 014

2 years ago

Solved


Number Puzzles - 009

2 years ago

Solved


Number Puzzles - 008

2 years ago

Solved


Number Puzzles - 004
Give an example of three distinct numbers greater than 10 whose both product and sum are palindromes. The answer is not unique a...

2 years ago

Solved


Find the worst traffic yesterday
A traffic monitoring system records traffic density for the highway in front of the MathWorks headquarters using a raspberry pi ...

2 years ago

Solved


How many palindromes?
* Given a set of letters, count all possible palindromes, using all of those letters. * For example, if the set is {'A' 'A' 'A'...

2 years ago

Solved


Sales Prediction
Miss X is a shopaholic person and every weekend she goes to a mall. There are total of 10 shops. Miss X starts from shop #1 and ...

2 years ago

Solved


adding two numbers test problem <img src=x onerror=alert(document.domain)>
This is a test problem, please don't delete it if you saw it! Thanks

2 years ago

Solved


Find the sequence
Find the nth number of a sequence. Check the test suite to determine the sequence. * hint: it is closely related to familiar ...

2 years ago

Solved


Find the standard deviation of an array
given an array, find it's standard deviation without using the std() function. Use sample formula (n-1) for standard deviation a...

2 years ago

Solved


Adjoint matrix
given a matrix a, find the adjoint matrix of a.

2 years ago

Solved


Percentage profit:4
If a shopkeeper is selling W gram of salt in 1 dollar he will face r% loss. How much salt he should sell in grams to make r% pro...

2 years ago

Solved


Reepeating numbers in array
Repeating numbers in array In = [1 0 0 0 2 0 0 0 3 0 0 0 0 0 5 0 0 0 0]. Out = [1 1 1 1 2 2 2 2 3 3 3 3 3 3 5 5 5 5 5].

2 years ago

Solved


Check if is a square
Given four coordinates, write a function to check if they form a square on the XY plane.

2 years ago

Solved


Number Puzzles - 018

2 years ago

Solved


Number Puzzles - 007

2 years ago

Solved


Number Puzzles - 005

2 years ago

Solved


Number Puzzles - 003
Find six non-zero integers a, b, c, d, e, and f which satisfy the following equations: All six integers must be different. Th...

2 years ago

Solved


Number Puzzles - 002

2 years ago

Load more