Solved

Solve the Sudoku Row

*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

4 months ago

Solved

Produce the following matrix

Produce the following matrix x = [2 3 4] y_correct = [1 1/2 1/3; 2 1 1/4; 3 4 1];

4 months ago

Solved

Tent matrix

Create an n x n matrix that resembles one kind of tent. The variable n is provided to the function and will be an odd number. As...

4 months ago

Solved

Make a rainbow matrix (follow-up to checkerboard matrix)

Given an integer n, make an n-by-n matrix as shown below. The a(1,1) should be 0. As we move away from the top-left, the number ...

4 months ago

Solved

Union Jack Matrix

Create a matrix of odd dimensions that has ones on both diagonals and dividing the matrix into 4 quadrants, resembling a square ...

4 months ago

Solved

Vandermonde Matrix

Create the Vandermonde Matrix of the given vector. The matrix consists of columns as powers of the vector, so the first column i...

4 months ago

Solved

Form a square matrix from four square sub-matrices

Create a square matrix, y, from 4 square sub-matrices that will be constructed (x1, x2, x3, x4): y = [x1 x2; x3 x4]; ...

4 months ago

Solved

Create a square matrix with given conditions

Create a square matrix, M, which should be populated as follows: M = [ n^2 n * (n-1) n * (n-2) ... n * 2 n * ...

4 months ago

Solved

Make a diamond

Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond. No toolbox funct...

4 months ago

Solved

Rosenbrock's Banana Function and its derivatives

Write a function to return the value of <http://en.wikipedia.org/wiki/Rosenbrock_function Rosenbrock's two-dimensional banana fu...

4 months ago

Solved

Sudoku Solver - Standard 9x9

Solve a Standard 9x9 <http://en.wikipedia.org/wiki/Sudoku Sudoku>. Values 1 thru 9 occur in each row, column, and the nine non-o...

4 months ago

Solved

Valid Chess Moves

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

4 months ago

Solved

GJam 2014 China Rd B: Sudoku Checker

This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p0 GJam 2014 China Sudoku>. Large Cas...

4 months ago

Solved

Binary Inversion

Given the unsigned 8-bit integer x, return the number y which is the binary inversion of x. For example if x is 5, y should b...

4 months ago

Solved

Pattern Sum

Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

4 months ago

Solved

Calculate vowel / consonant ratio of a string

Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

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

4 months ago

Solved

Image Series 3 Complementary

Find the Complementary of image which is 8 bits gray scale image. Each pixel is converted to binary format in the image. A...

4 months ago

Solved

Create a New_Word

The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...

4 months ago

Solved

How many complete pizzas

x is a vector with numbers of pizza slices. A corresponding vector n indicates in how many slices the pizza slices of x were cut...

4 months ago

Solved

convert between ascii and characters

I have seen multiple problems like this but none of them have a robust test suite associated with them. The first input C is ...

4 months ago

Solved

Generate one sample of uniform random numbers between -pi and +pi

Generate one sample of uniform random numbers between -pi and +pi.

4 months 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 :-)...

4 months ago

Solved

Negative without '-'

Simple: return a negative number without using the '-' sign. Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...

4 months ago

Solved

Add 3 (x<=100) Or Subtract 100 and add 3(100<x)

Add 3 to every element. However, if the value is greater than 100, subtract 100 and add 3. eg. input x = [45 106; 67 1...

4 months ago

Solved

The twelve days of Christmas

Traditionally there are twelve days of Christmas to celebrate ("Twelvetide"), typically starting with Christmas Day (25 December...

4 months ago

Solved

remove nans fast

There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

4 months ago

Solved

Divide the Least Common Multiple by the Greatest Common Divisor of two numbers

Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

4 months ago