Community Profile

photo

David Hill


Last seen: Today
1,161 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


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

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

8 hours 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!

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

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

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

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

1 day ago

Solved


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

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

1 day ago

Solved


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

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

2 days ago

Solved


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

2 days ago

Solved


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

2 days ago

Solved


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

2 days ago

Solved


Rank of matrix
Find the rank of given matrix

2 days ago

Solved


To convolve two vectors
To convolve two vectors

2 days ago

Solved


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

2 days ago

Solved


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

2 days ago

Solved


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

2 days ago

Solved


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

2 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

2 days ago

Solved


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

2 days ago

Solved


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

2 days ago

Solved


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

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

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

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

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

3 days ago

Solved


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

3 days ago

Solved


Find out Harmonic mean.
Find out Harmonic mean.

3 days ago

Load more