Solved

Find the next Fibonacci number

In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

circa un anno ago

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

circa un anno 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 ...

circa un anno 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 ...

circa un anno 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...

circa un anno ago

Solved

Add consecutive integer numbers

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

circa un anno 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...

circa un anno 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...

circa un anno 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 ...

circa un anno 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...

circa un anno 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...

circa un anno 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...

circa un anno 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 ...

circa un anno 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.

circa un anno 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....

circa un anno 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,...

circa un anno 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...

circa un anno 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];'

circa un anno 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. ...

circa un anno 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...

circa un anno 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+...

circa un anno 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); ...

circa un anno 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 ...

circa un anno 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...

circa un anno 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]...

circa un anno ago

Solved

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

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

circa un anno ago