Community Profile

# William

Last seen: Today Actif depuis 2012

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

All

#### Content Feed

Afficher par

A résolu

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

4 jours il y a

A résolu

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

4 jours il y a

A résolu

learning to code?
dsF

5 jours il y a

A résolu

Vectorial sum
vectroiral sum

5 jours il y a

A résolu

dont try dis lmao
sd

5 jours il y a

A résolu

freeeeeee3

5 jours il y a

A résolu

freeeeee
free

5 jours il y a

A résolu

freeeeee
free points

5 jours il y a

A résolu

Determine if a given input is even or odd?
Given an input, determine if even or odd.

6 jours il y a

A résolu

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

8 jours il y a

A résolu

Just square the input
Square the number

12 jours il y a

A résolu

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

14 jours il y a

A résolu

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

14 jours il y a

A résolu

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

16 jours il y a

A résolu

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

18 jours il y a

A résolu

Slope intercept application
Find y given slope (m), x, and y intercept (b).

18 jours il y a

A résolu

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

18 jours il y a

A résolu

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

18 jours il y a

A résolu

Determine if vector has any zeroes
Return 1 if vector has atleast 1 zero, else return 0

18 jours il y a

A résolu

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

19 jours il y a

A résolu

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 jours il y a

A résolu

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

20 jours il y a

A résolu

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

20 jours il y a

A résolu

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

20 jours il y a

A résolu

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

21 jours il y a

A résolu

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

21 jours il y a

A résolu

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

21 jours il y a

A résolu

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

24 jours il y a

A résolu

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 jours il y a

A résolu

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

environ un mois il y a