David Hill

Carnegie Mellon University (CMU)

Last seen: 2 días hace Con actividad desde 2017

Followers: 2   Following: 0

Master's Student in Robotic Systems Development (MRSD), BS Electrical Engineering with minors in Computer Science and Mathematics.

Programming Languages:
Python, C++, C, Java, Javascript, R, MATLAB, CSS, Arduino
Spoken Languages:
English, Spanish
Professional Interests:
Robotics and Autonomous Systems, Embedded Systems

All

Ver insignias

Feeds

Ver por

Resuelto

Find the Final State of an Abelian Sandpile
Let us define an <http://nautil.us/issue/23/dominoes/the-amazing-autotuning-sandpile Abelian sand pile> as a matrix that is only...

1 día hace

Resuelto

Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

3 días hace

Resuelto

Easy Sequences 46: Semi-prime Leap Year Pairs
A semi-prime is a positive integer that has only and exactly prime factors. Here is a list of the first few semi-primes:. We...

9 días hace

Resuelto

Return area of square
Side of square=input=a Area=output=b

10 días hace

Resuelto

The Prime Days of Christmas
On the first day of Christmas my true love sent to me partridges in a pear tree. On the second day of Christmas my true love s...

11 días hace

Resuelto

Conditional transpose II
As in problem 60734, you're given two vectors, x and y, which might be row or a column vectors. Your task is to ensure that y ha...

12 días hace

Resuelto

Delete some elements in the natural set and find the sum of the first n terms
Delete the number (except 0，1) with a complete square number from the natural set of numbers, form a new set of numbers, find th...

12 días hace

Resuelto

Conditional transpose
You're given two vectors of the same length, x and y, which might be row or a column vectors. Your task is to ensure that y has ...

12 días hace

Resuelto

Remove the diagonal of a square matrix
Some Cody problems ask solvers to remove columns (e.g., CP 7), and others ask solvers to remove rows (e.g., CP 44033). Write a...

16 días hace

Resuelto

Organic Chemistry
Determine the names of the organic component formed with carbon and hydrogen. For example, if n=1 the name is methane

16 días hace

Resuelto

Wheatstone bridge
Determine if a set of resistors maintain Wheatstone bridge equilibrium

16 días hace

Resuelto

Find the closest geyser prime
My wife and I celebrated our honeymoon and our recent anniversary in Yellowstone and Grand Teton National Parks. After returning...

16 días hace

Resuelto

Complete a 2nd order difference sequence
In Cody Problem 59791 ChrisR asks us to find the integer that completes a randomly sorted geometric sequence with one missing el...

24 días hace

Resuelto

This is a test problem, please don't delete it if you saw it! Thanks

alrededor de 1 mes hace

Resuelto

Convert RGB to Grayscale
Convert a 3 element RGB array to its correspoding grayscale pixel (a scalar) *Hint: a formula exists!

alrededor de 1 mes hace

Resuelto

Palindrome Checker
Check to see if a given string is a palindrome (a word, phrase, or sequence that reads the same backward as forward). Output sh...

alrededor de 1 mes hace

Resuelto

Reverse a string
Return a string with the characters in reverse order from a given input string Ex: my_str = "Ciao" function should output "...

alrededor de 1 mes hace

Resuelto

From a given cell array of strings, extract the non-unique strings.
We are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning t...

alrededor de 1 mes hace

Resuelto

Genome decoding
Inspired by a question on the answer forum: You are given a matrix of 8-bit integers which encodes a genome. Each integer can...

alrededor de 1 mes hace

Resuelto

Legend of Zelda - Rupee Count (Item Purchase)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that an arr...

alrededor de 1 mes hace

Resuelto

Legend of Zelda - Rupee Count (Compact)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...

alrededor de 1 mes hace

Resuelto

Cat, Meowcat and Concatenation
Input is a cell array containing several strings. Find the largest continuous sub-string common to all strings. All strings are ...

alrededor de 1 mes hace

Resuelto

Sum All Positive Elements
Output a scalar that is equal to the sum of all positive elements in a given vector/matrix. For Example: The sum of all positi...

alrededor de 1 mes hace

Resuelto

Diagonal Product of A Square Matrix
For a matrix A, calculate the product of its diagonal elements. * Assume all input matrices are square & corresponding element...

alrededor de 1 mes hace

Resuelto

Spiral In
Create an m by n matrix filled with sequential integers starting from 1 and arranged in a counterclockwise spiral that hugs the ...

alrededor de 2 meses hace

Resuelto

Spot the rectangle (Part 2)
This problem is related to the 17x17 challenge. See also Part 1 of this problem. Given a matrix in which each element is either ...

alrededor de 2 meses hace

Resuelto

Spot the rectangle
This problem is related to the 17x17 challenge. Given a matrix filled with ones and zeros, determine whether or not any rectangl...

alrededor de 2 meses hace

Resuelto

calculate the day of the year from a date string.
'09-Oct-2016' is the 283rd day of the year. So doy = dayoftheyear('09-Oct-2016') should return doy = 283

alrededor de 2 meses hace

Resuelto

Get an array of month-ends in a date range
Create a function that would return a list of month-ends falling in a given date range. If a start date or end date falls on a...

alrededor de 2 meses hace

Resuelto

Lost days
Given two dates in a particular format, calculate the difference between them.

alrededor de 2 meses hace