Community Profile

photo

William


3,209 total contributions since 2012

Contact

William's Badges

  • Cody5 Hard Master
  • Introduction to MATLAB Master
  • Combinatorics I Master
  • Computational Geometry III Master
  • Word Puzzles Master
  • Strings I Master
  • Card Games Master
  • Project Euler I
  • Divisible by x Master
  • Computational Geometry IV Master
  • Indexing V Master
  • Computational Geometry II Master
  • Draw Letters
  • Matrix Manipulation I Master
  • Magic Numbers II Master

View all

Contributions in
View by

Solved


RSA decryption
Decrypt a large integer string using RSA decryption given the public key (n) and private key (d). Convert the large integer decr...

8 days ago

Solved


RSA encryption using public key
Encrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer strin...

10 days ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

16 days ago

Solved


Determine RSA keys (public and private) given two prime number character strings (p and q)
Given two prime number character strings (p and q), generate the RSA public and private keys (n and d) with e = 65537. The more ...

16 days ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

16 days ago

Solved


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue dashed line of |y| versus |t|. Mark the minimum value |m| of the...

16 days ago

Solved


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt).cos(2πft)| Given inputs λ ( |lambda...

16 days ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the rolls is likely to be close to the expected value of a sin...

16 days ago

Solved


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. The element values ...

16 days ago

Solved


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

16 days ago

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

16 days ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

16 days ago

Solved


Calculate BMI
Given a matrix |hw| with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 inch = 2.54 centimet...

16 days ago

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they do, create an output variable |z| co...

16 days ago

Solved


Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

16 days ago

Solved


Solve a System of Linear Equations
Given a constant input angle θ(theta) in radians, create the coefficient matrix(A) and constant vector(b) to solve the giv...

16 days ago

Solved


Square root of number
Square root of given number.

19 days ago

Solved


GJam:2013 World B: MAD Drummer
This Challenge is derived from the <http://code.google.com/codejam/ Google Code Jam 2013 World Championship>. The <http://code.g...

1 month ago

Solved


Get Next Combination
Return next combination For example three-element combinations of 1:5 1 2 3 1 2 4 1 ...

1 month ago

Solved


Find square of given number
Find Square of any number

1 month ago

Solved


GJam 2014 China Rd B: Dragon Maze
This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p3 GJam 2014 China Dragon Maze>. Smal...

1 month ago

Solved


What time can I drive after drinking?
At T o'clock, after a hard day of Matlab, I immediately start drinking and treat myself to N pints of tasty beer. Each beer I dr...

1 month ago

Solved


Cody meets Xiangqi: foresee the unseen (Part 1)
This is the first part of the Xiangqi series. The second part in this series is: <http://www.mathworks.com/matlabcentral/cody/pr...

1 month ago

Solved


GJam 2014 China Rd B: Party
This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p1 GJam 2014 China Party>. Small Case...

1 month ago

Solved


Float like a cannonball
Given gravity on earth (g=9.81 [m/s/s]) find the distance s [m] by a cannonball propelled at a speed of u [m/s] from the origin ...

1 month ago

Solved


Maximize Non-Co-Planar Points in an N-Cube
This Challenge is to find a set with the maximum number of integer points that create planar surfaces with a maximum of three po...

1 month ago

Solved


GJam: 2013 China Event: Name Sorting
This Challenge is derived from <http://code.google.com/codejam/contest/2933486/dashboard#s=p2 GJam 2013 China Moist>. The proble...

2 months ago

Solved


Approximate the inverse tangent by power series
Given values b (where abs(b)<=1) and n (polynomial order), write a function that calculates atan(b) by using power series.

2 months ago

Solved


RISK board game battle simulation
Given two positive integer inputs, a (attacker army units) and d (defender army units) return the probablity of victory (from 0....

2 months ago

Solved


Vogel-Dobbener entropy
*Vogel-Dobbener entropy* is a measure of dispersion for ordinal variables. Given an ordered list of distinct observations u_...

2 months ago

Load more