Expand 10^n to Powers of 4
Given an integer n, return the coefficients
c = [c_n,c_n-1,...,c_0]
Such that
10^n = c_n*4^(n) + c_n-1*4^(n-1...
5年以上 前
解決済み
Muphry's Law of MATLAB
You're running some simple multiplication problems through MATLAB for error checking purposes, but nothing seems to come up with...
5年以上 前
解決済み
Choose the best fitting dominoes
You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be plac...
5年以上 前
解決済み
Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...
5年以上 前
解決済み
Woodall number
Test whether the input is a Woodall number: <http://en.wikipedia.org/wiki/Woodall_number>
_Please do not cheat by simply chec...
5年以上 前
解決済み
Fun with a compass
Each night for the past week, you have been having the same nightmare: You find yourself back in your junior high school geometr...
5年以上 前
解決済み
Angle bisectors
Given 2 direction vectors, calculate the *_two_ (2) normalized angle bisectors* (which are perpendicular between them).
Input...
5年以上 前
解決済み
Wayfinding 2 - traversing
This is the second part of a series of assignments about wayfinding. The final goal is to be able to calculate the fastest route...
5年以上 前
解決済み
Wayfinding 1 - crossing
This is the first part of a series of assignments about wayfinding. The final goal is to be able to calculate the fastest route ...
Points on a Sphere
Given a sphere of radius R, determine how many points on the surface of that sphere have three integer coordinates. Do not outp...
5年以上 前
解決済み
Points on a circle.
This problem is related to <url=http://www.mathworks.com/matlabcentral/cody/problems/1283-points-on-a-sphere>Problem 1283, Point...
5年以上 前
解決済み
Dots in a Diamond
Return how many <http://en.wikipedia.org/wiki/Diamond_cubic Diamond Cubic> lattice grid points there are inside a 3D sphere of r...