Community Profile

photo

William


3,260 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


Elliptic Curve Cryptography (ECC) Point Addition
Given two points (P and Q, they can be the same points on the elliptic curve), compute ECC point addition on a Weierstrass ellip...

3 days ago

Solved


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

5 days ago

Solved


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

7 days ago

Solved


find subscripts from linear index
a matrix and the linear index of an element is given as input. find the subscripts of that element. if linear index=3 , outp...

7 days ago

Problem


Determine whether a given point is inside or outside a polygon
A closed polygon may be described by an N x 2 array of nodes, where the last node and the first node are the same. Each row of ...

8 days ago | 1

Solved


Calculate the area of a circle
Given a circle of diameter x calculate its area

8 days ago

Solved


Cantor counting
Find the nth cantor's rational number. the sequence is given below in the link. Sequence: 1/1,1/2,2/1,3/1,2/2,1/3,1/4... ... .....

10 days ago

Solved


check whether a number is a pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

11 days ago

Solved


generate nth pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

11 days ago

Problem


Fun with permutations
There are factorial(N) permutations of the numbers from 1 to N. For each of these permutations, we can find the set of indexes j...

11 days ago | 0

Solved


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

12 days ago

Solved


Repeat elements of a vector
Repeat each elements of a given vector according to their values. say x=[1,2,1,3] y=[1,2,2,1,3,3,3]

12 days ago

Solved


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

12 days ago

Solved


X O X O
On a noughts and crosses board, how many possible unique combinations are there given a square grid of length n? Assumptions/...

16 days ago

Solved


Combinations using Stirling numbers of the second kind
Output the number of ways to distribute n labelled balls among k identical boxes (some of which might be empty). Example: ...

19 days ago

Solved


factorial
calculate x!

21 days ago

Solved


Square
square root of x

23 days ago

Solved


Takuzu row
Takuzu row is one row in a logic puzzle of a rectangular grid. The rules are as follows: (1) The row is filled with 1s and 0s...

24 days ago

Solved


Simple Robotics 2 - End effector attitude
Given a structure as input to your function with the following fields: * robot.links(L1,L2,L3) * robot.jointangles(alfa1,alfa2...

25 days ago

Solved


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the ...

25 days ago

Solved


Open coded lock.
Guess the <hint://fliplr(anchortext) password> or break the <2314/solutions/new#test_suite_body lock>.

27 days ago

Solved


make histogram
You probably know the function hist(x,n) to get the histogram. Now try to write the function yourself! For the cheaters wanti...

28 days ago

Solved


Check prime numbers
Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

28 days ago

Solved


D'Hondt Method of Proportional-Representation
The D'Hondt method is a proportional representational method for allocating seats to parties in an election. <https://en.wiki...

28 days ago

Solved


Hamming Weight - Size Scoring
The Hamming Weight, <http://en.wikipedia.org/wiki/Hamming_weight wiki Hamming Weight>, in its most simple form is the number of ...

28 days ago

Solved


Fraction of a fraction of a ...
One sort of brainteaser problem is a math problem wherein you are asked what the given fraction of a fraction of a ... number is...

28 days ago

Solved


Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

1 month ago

Load more