Solved

GJam 2017 Kickstart: Leader (Large)

This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader>. This ...

7 mesi ago

Solved

GJam 2017 Kickstart: Leader (Small)

This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader>. This ...

7 mesi ago

Solved

Solve Rubik's Cube - One Rotation

A standard Rubik's Cube is shown in 3-D and also unfolded to identify the specific Tile-face/Vector numbering. The faces are ...

7 mesi ago

Solved

Create a magic square matrix for a given odd integer

A magic square of size 'N' is a matrix that satisfies the following criterias: # Dimension - NxN # Matrix should contain ALL...

8 mesi ago

Solved

Add consecutive integer numbers

Given consecutive numbers, add the numbers *without using the sum command in MATLAB.*

8 mesi ago

Solved

Wrecked Angles?

It's time for some simple geometry fun to start off the new year. You will be given the perimeter P and the area A of a recta...

8 mesi ago

Problem

Wrecked Angles?

It's time for some simple geometry fun to start off the new year. You will be given the perimeter P and the area A of a recta...

8 mesi ago | 0

Solved

Mechanical Advantage of a Gear Train

Calculate the mechanical advantage of a gear train. The mechanical advantage of a gear couple is given by MA = T_o/T_i where ...

8 mesi ago

Solved

Word Search Solver

There are n words (minimum of three letters in each word) supplied with a given word search board. The answer will contain n row...

8 mesi ago

Solved

Solve The Equation

The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

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

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

8 mesi ago

Solved

Subtract integers and add doubles

Create a function that subtracts a from b if a and b are integers and adds them if they are floats.

8 mesi ago

Solved

Bubble sort

Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

8 mesi ago

Solved

pizza deals

Given two pizza slices of different sizes: * Slice A with angle alpha1, radius r1, and price p1 * Slice B with angle alpha2,...

8 mesi ago

Solved

sum of ASCII

Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

8 mesi ago

Solved

Translate German decimals to English decimals

The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

8 mesi ago

Solved

How to calculate the length of a triangle's side given two angles and one side

You are given a triangle with angles alpha, beta and gamma and sides a opposite alpha, b opposite beta and c opposite gamma. ...

8 mesi ago

Solved

How to permute given 3d matrix?

A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] Change rows to columns and columns to rows, similar to transpose. Resul...

8 mesi ago

Solved

Calculate geostrophic current

eta0=0.01; R=300; f=0.01; g=9.81; x=-500:50:500; y=-500:50:500; [x y]=meshgrid(x,y); eta=eta0*exp(-(x.^2+...

8 mesi ago

Solved

Where is 1?

There is a 3d matrix [A] that consist of many zeros and only one. A=zeros(100,100,100); i=randi(100); j=randi(100); ...

8 mesi ago

Solved

Interpolate scattered data.

Most data was scattered, and there is no gird. There are three data [c] in three different area [x,y]. x=[1 3 4]; y=[1 ...

8 mesi ago

Solved

Removing vibration!

There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

8 mesi ago

Solved

Integrate Me

Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

8 mesi ago

Solved

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

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

8 mesi ago

Solved

Forward Substitution

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

8 mesi 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 :-)...

8 mesi ago