# William

Semi-retired physicist with interests in numerical modeling and mathematics.

**Statistics**

RANK**973**

of 271,030

REPUTATION**58**

CONTRIBUTIONS

**0** Questions

**35** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**10**

RANK

of 18,282

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Count the unitary divisors of a number

Cody Problem 56738 asks for a list of the unitary divisors of a number. For this problem, write a function to count the unitary ...

3 days ago

Solved

List unitary divisors of a number

A unitary divisor of a number divides and satisfies gcd(,) = 1. For example, 9 is a unitary divisor of 18 because gcd(9,2) = ...

3 days ago

Solved

Determine if a given input is even or odd?

Given an input, determine if even or odd.

5 days ago

Solved

Acid-Base Chemistry: Which side of the reaction is more favorable?

In an Acid-Base reaction, there is always going to be an acid, a base, a conjugate acid, and a conjugate base. When provided wit...

7 days ago

Solved

Is the number of 1s in a binary integer odd or even?

Your function should turn the input integers into binary form and count the number of 1s in the binary. If the number is odd, re...

13 days ago

Solved

List the nth term of Rozhenko’s inventory sequence

Consider a sequence constructed by repeated inventories. A new inventory begins each time a zero is encountered. The first few i...

13 days ago

Solved

Cricket - Report the Result (Part II: Test Matches)

Given two scalar strings representing the scores for a test match, return a string reporting the result in the appropriate form:...

15 days ago

Solved

Compute the drag on a moving vehicle

We assume no rolling resistance, and the simple rule for Drag : , where is the density of the fluid (assumed at 1.2 ), is the ...

17 days ago

Solved

Check if a year is a leap year or not

Return 1 if a given year is a leap year or 0 if it is not

17 days ago

Solved

Remove Duplicates

Remove duplicates from the vector of integers and display in sorted order

17 days ago

Solved

Determine if vector has any zeroes

Return 1 if vector has atleast 1 zero, else return 0

17 days ago

Solved

Cricket - Career Bowling Statistics

Given a vector s of strings representing a bowler's individual innings records, return their career statistics as a 3-element (n...

18 days ago

Solved

Cricket - Report the Result (Part I: Limited Overs)

Given two scalar strings representing the scores for a limited-overs match, return a string reporting the result in the form "Te...

19 days ago

Solved

Cricket - Peak Batting Average

Given a vector s of strings representing a batter's individual innings scores (in chronological order), return the highest batti...

19 days ago

Solved

Cricket - Represent Average in "Dulkars" and "Ses"

Sachin Tendulkar's Test average was 53.78. So if Tendulkar = 53.78, one dulkar = 5.378. Similarly, Roger Twose's average was 25....

19 days ago

Solved

Cricket - Career Batting Statistics

Given a vector s of strings representing a batter's individual innings scores, return their career statistics as a 4-element (nu...

19 days ago

Solved

Cricket - How Much More to Beat Bradman?

Sir Don Bradman famously needed only 4 runs in his final innings to retire with an average of 100. Out for a duck, he ended inst...

20 days ago

Solved

Cricket - Average Partnership Contribution

The (infamous) Duckworth-Lewis method uses statistical models of how much each wicket partnership is worth to an innings (on ave...

20 days ago

Solved

IQpuzzler Preparation #1: Find all possible orientations of a matrix

Return all non-identical orientations of a 2-D matrix that can be produced by rotating or flipping it. Input is an M-by-N matri...

20 days ago

Solved

nth permutation of 11...100...0

Given some number of ones and zeros, numOnes and numZeros respectively, find the nth permutation of the vector [ones(1,numOnes),...

23 days ago

Solved

Multiply each matrix element by its row index and add its column index.

Return a matrix the same size as the input, multiply each element by its row index and add its column index. Example: x = [ 1 ...

24 days ago

Solved

Easy Sequences 78: Trailing Zeros of Factorial Numbers at any Base

Given an integer and a number base , write a function that calculates the number of trailing zeros of the factorial of when wr...

1 month ago