Community Profile

photo

David Hill


Last seen: Today
1,163 total contributions since 2017

Contact

David Hill's Badges

  • 6 Month Streak
  • Pro
  • Knowledgeable Level 4
  • Sequences And Series III Master
  • Puzzler
  • Scholar
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 2
  • First Review
  • First Submission
  • Revival Level 1
  • Creator
  • Leader
  • Computational Geometry II Master
  • Card Games Master

View all

Contributions in
View by

Solved


Kissing Circles-01
Three circles are mutually tangent to each other and also to a line. find the radius of the smallest circle. The radius of th...

11 hours ago

Solved


Number generator
In this problem, a number will be given. starting with the first digit, keep on adding all subsequent digits till the state (...

12 hours ago

Solved


modular arithmetic
Given three integers a,b and c, find the remainder when a^b is divided by c. Here, a^b will be well beyond the largest 64 bit in...

1 day ago

Solved


grazing cows
Here is a fun problem I encountered in high school. Two cows are grazing in an enclosed square-shaped field of side length s ...

1 day ago

Solved


Big Integer Sqrt
You will be given a big integer, you should return the square root of it. input: '16' output: '4' have fun!

2 days ago

Solved


Cat's paw - 01
lets imagine a cat, standing on an infinitely long row of tiles. since its a 'cat', string length=3; it takes 3 tiles to stand. ...

2 days ago

Solved


Area-07
This is a follow up of the problem <https://www.mathworks.com/matlabcentral/cody/problems/45341-area-06> in this case, fi...

2 days ago

Solved


Grazing-02
A cow is tied to an outside corner of a rectangular barn of size (a,b) with a rope of length l. What is the maximum area the cow...

2 days ago

Solved


Area-05
The dimension of a rectangle is given. There are two circles of equal size that are inscribed inside it.The circles are tangent ...

2 days ago

Solved


lucky
check whether n is a lucky number <https://oeis.org/A000959>

2 days ago

Solved


Grazing-01
A cow is tied to an outside corner of a rectangular barn of size (a,b) with a rope of length l. What is the maximum area the cow...

2 days ago

Solved


Sieve of Eratosthenes
Find the nth lucky prime number. <https://planetmath.org/luckyprime> can u find a way for large n?

3 days ago

Solved


Area-06
The length of the side of a square is given. Draw 4 quarter-circles inside the square from 4 corners with a radius equal to t...

3 days ago

Solved


volume of torus
Find volume of torus with a as major radius and b as minor

3 days ago

Solved


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

3 days ago

Solved


Roots of quadratic equation
Given a quadratic equation ax^2 + bx + c = 0, write a function to return its roots.

3 days ago

Solved


Rank of matrix
Find the rank of given matrix

3 days ago

Solved


To convolve two vectors
To convolve two vectors

3 days ago

Solved


Output a vector which is table of 9
Output a vector which is table of 9

3 days ago

Solved


Permutations of input vector
Find and output all permutations of given vector

3 days ago

Solved


Step up
For given input array, output a array with all elements step up by two

3 days ago

Solved


Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays

3 days ago

Solved


Throw common elements of two vector arrays in sorted manner
Throw common elements as output in sorted manner (acending order) of two given input vector arrays

3 days ago

Solved


string comparision
compare two strings if both are same return 1 else return 0

3 days ago

Solved


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

3 days ago

Solved


Xor of matrix
you have to set exclusive OR of two arrays

3 days ago

Solved


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

3 days ago

Answered
If statement not executing
You are overriding Bm2 unless there is only one case where abs(v)==abs(r1). You should be able to execute without loops. If you ...

4 days ago | 0

Solved


Create a random vector of integers with given sum
Your task today is to write a function that returns a vector of integer numbers, between, and including, 1 and m, of which the s...

4 days ago

Solved


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

4 days ago

Load more