Community Profile

# David Hill

##### Last seen: Today
1,161 2017 이후 총 참여 횟수

#### David Hill's 배지

모두 보기

참여 게시물
보기 기준

해결됨

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

약 16시간 전

해결됨

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

약 16시간 전

해결됨

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

약 21시간 전

해결됨

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

약 22시간 전

해결됨

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

약 22시간 전

해결됨

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일 전

해결됨

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일 전

해결됨

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

1일 전

해결됨

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일 전

해결됨

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

2일 전

해결됨

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일 전

해결됨

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

2일 전

해결됨

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

2일 전

해결됨

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

2일 전

해결됨

Rank of matrix
Find the rank of given matrix

2일 전

해결됨

To convolve two vectors
To convolve two vectors

2일 전

해결됨

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

2일 전

해결됨

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

2일 전

해결됨

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

2일 전

해결됨

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

3일 전

해결됨

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일 전

해결됨

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

3일 전

해결됨

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

3일 전

해결됨

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

3일 전

해결됨

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일 전

답변 있음
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일 전 | 0

해결됨

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일 전

해결됨

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

3일 전

해결됨

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일 전

해결됨

Find out Harmonic mean.
Find out Harmonic mean.

3일 전