Solved

Forward Substitution

Solve a lower triangular linear set of equations as described in the following link: http://www.people.virginia.edu/~teh1m/cody/...

circa un anno ago

Solved

X plus binary inverted x

Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

circa un anno ago

Solved

Tridiagonal matrix

Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

circa un anno ago

Solved

Can we make a triangle?

Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

circa un anno ago

Solved

A shooting competition

In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

circa un anno ago

Solved

For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?

For a rectangle, if x is the length and 2x is the width. Then find out x from the area of the rectangle? if the area is equal...

circa un anno ago

Solved

Tic Tac Toe Solver

Create a function that checks n number of tic tac toe boards housed in a 3x3xn matrix where the x's are represented as 1's (and ...

circa un anno ago

Solved

The 17x17 Problem

This problem is sometimes referred to as the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. See also <http://...

circa un anno ago

Solved

Integer complexity

Given an array, n, of positive integers, return an array, c, of the same size, in which each element is the <https://en.wikipedi...

circa un anno ago

Solved

Probability of winning single-elimination tournament

Find the probability that the p^{th} player will win a single-elimination tournament with 2^n players where M(i,j)=probability t...

circa un anno ago

Solved

what's my tax amount this year ?

given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

circa un anno ago

Solved

Give the Shortest Path Through The Maze

*Description* The purpose of this problem is to give the shortest path through a maze. The maze will be provided in a codifie...

circa un anno ago

Solved

Optimization of cylinder surface area

Optimization of a cylinder surface area. What are the best parameters (radius and height) to get the minimum cylinder surface a...

circa un anno ago

Solved

Anyone for tennis? Your chances of winning a (standard) game

Imagine you are playing tennis, and for _each point_ played your chance of winning is |x| % (input as a |<https://au.mathworks.c...

circa un anno ago

Solved

Check if two matrices are permutations of each other

Your function should return true for the elements of one matrix is the permutation of the other matrix: x = [1 2 3; 4 5 6; ...

circa un anno ago

Solved

Find the numeric characters in a string and return their index

Given a string S, return the index of any numeric characters. S = 'The next meeting will be held in 2 weeks.'; idx = fin...

circa un anno ago

Solved

Cube root of max value in a vector

Find the cube root of the maximum value in a vector

circa un anno ago

Solved

Valid Chess Moves

Using <http://en.wikipedia.org/wiki/Algebraic_chess_notation standard Algebraic notation> ('' for a pawn), given previous move a...

circa un anno ago

Solved

Go-style solver

Consider a variation of the game Go where one player has gone ahead and placed several pieces all at once. Assuming that the sec...

circa un anno ago

Solved

SET (the card game)

<http://www.setgame.com/set/index.html SET> is a card game in which players try to find valid 3-card sets from 12 cards on the t...

circa un anno ago

Solved

Cell Array Inception?

Jimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kt...

circa un anno ago

Solved

Draw Dominos

Write a function to draw dominos. The number on each side can range from 0 to 9. For example, for an input of [3,7], your functi...

circa un anno ago

Solved

Project Euler 249: Prime Subset Sums

Inspired by Problem 249 of Project Euler. <https://projecteuler.net/problem=249> Let S = {2, 3, 5, ...} be the set of prime ...

circa un anno ago

Solved

NCHOOSEK - Time Optimization

*Input* * *V* —— Set of all choices, a vector of N, 1 < N < 100 * *K* —— Number of selected choices, a scalar, 0 <= K <=...

circa un anno ago

Solved

Maximum sum from any 2 numbers with a variable number of inputs

Given a variable number of inputs, combine any 2 numbers from the inputs and output the maximum sum the combinations can generat...

circa un anno ago

Solved

Modified run-length companion vector

Given a vector x, return a vector that indicates the run length of any value in x. Each element in output vector shows how many ...

circa un anno ago

Solved

Capitilize the first letter of every word in a string

For a given input string, capitalize every letter at the beginning of a word, and transform the rest of the letters to lower-cas...

circa un anno ago

Solved

Cannibal eating odd and even numbered men

There are N men in a queue. A cannibal eats either all odd-numbered or all even-numbered men in the queue at a time. In the fi...

circa un anno ago