Community Profile

# ChrisR

Last seen: Today Aktiv seit 2015

I teach courses in water resources and environmental fluid mechanics.

#### Statistics

All

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Gelöst

GJam 2017 Kickstart: Parentheses (Large)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p2 GJam 2017 Kickstart Parentheses>. ...

4 Tage vor

Gelöst

GJam 2017 Kickstart: Parentheses (Small)
This Challenge is derived from <http://code.google.com/codejam/contest/6304486/dashboard#s=p2 GJam 2017 Kickstart Parentheses>. ...

4 Tage vor

Gelöst

Make a function that returns its own character count
Write a function that returns a 128 element vector with an accurate inventory of the ASCII characters in its own function file. ...

8 Tage vor

Gelöst

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

8 Tage vor

Problem

Compute the unitary totient of a number
The totient function , the subject of Cody Problems 656 and 50182, gives the number of integers smaller than that are relativel...

9 Tage vor | 1 | 1 Lösungsvorschlag

Gelöst

sum of vectors
sum of vectors

10 Tage vor

Problem

Sum the unitary divisors of a number
Cody Problems 1933 and 46898 deal with , the sum of divisors function. This problem deals with , the sum of unitary divisors fun...

10 Tage vor | 1 | 6 Lösungsvorschläge

Problem

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

11 Tage vor | 0 | 6 Lösungsvorschläge

Problem

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

11 Tage vor | 0 | 6 Lösungsvorschläge

Gelöst

freeeeee
free points

12 Tage vor

Gelöst

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

12 Tage vor

Gelöst

Cumulative minimum of an array
Find the cumulative minimum of an array without using the built-in function <http://www.mathworks.com/help/matlab/ref/cummin.htm...

12 Tage vor

Gelöst

Cumulative maximum of an array
Find the cumulative maximum of an array without using the built-in function cummax (and a few others). Your function should act ...

12 Tage vor

Gelöst

Spectral Distance - Speed Scoring
Find quantity of pixels within a spectral distance from a given [r,g,b] spectra. *Spectral distance* = sqrt( (r0-ri)^2+(g0-gi...

13 Tage vor

Gelöst

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

13 Tage vor

Gelöst

IQpuzzler Preparation #2: Detect isolated zeros in a 2D matrix
Return true if any isolated single zeros are present in the input M-by-N matrix (zeros with all adjacent elements being non-zero...

14 Tage vor

Gelöst

Estimating Euler's (Oi-ler-z) Number
Euler's number is an irrational constant given by Starting with x=0, count the number of times you can add a uniformly distrib...

14 Tage vor

Gelöst

A Binary Search
One way to locate a target value in a sorted array, is to use a binary search algorithm. Here, you test if the midpoint in the a...

14 Tage vor

Gelöst

Generate Pascal's Triangle Matrix
Pascal's triangle is an arrangement of numbers where each value is the sum of the values adjacent to it in the previous row: ...

15 Tage vor

Gelöst

Where the Four Corners Am I? (Vectorized)
NOTE: this problem is intended to build on problem #55960 ("Where the Four Corners Am I?"). You may wish to solve that problem f...

15 Tage vor

Gelöst

Create block matrix of integers (j+k-1) - Part II
Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

15 Tage vor

Gelöst

Possible Rugby Scores
Given a natural number s (> 4), representing a rugby team's score, return an n-by-3 matrix representing all n possible combinati...

15 Tage vor

Gelöst

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

15 Tage vor

Gelöst

Euclidean distance from a point to a polynomial
A not uncommon problem in the area of computational geometry is to find the closest point to a straight line from a given point,...

18 Tage vor

Gelöst

Calculate Angle From Axis
Given coordinates x and y, an axis ("X" or "Y"), and a direction ("cw" or "ccw", meaning clockwise and counterclockwise, respect...

19 Tage vor

Gelöst

Interpolated Value Between Two Points
Given two points, and , a new location x, and a method "linear" or "cubic", return the value of a linear or cubic interpolant t...

19 Tage vor

Gelöst

Next Tribonacci Number
The "Tribonacci" sequence is an extension of the idea of the Fibonacci sequence: That is, each new term is the sum of the thr...

19 Tage vor

Gelöst

Just square the input
Square the number

19 Tage vor

Gelöst

Angle Between Analog Clock Hands
Given a datetime variable t, return the angle (in degrees) between the hour and minute hands of an analog clock at the time repr...

20 Tage vor

Gelöst

Boustrophedon
Given a vector v and a positive integer n, return an m-by-n matrix containing the elements of v row-wise, alternating left-to-ri...

20 Tage vor