Cody

Problem 44713. The Google Interview: Two Eggs Problem

Solution 3487239

Submitted on 30 Oct 2020 at 23:37
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
assert(isequal(Google(1),1))

Assertion failed.

2   Fail
assert(isequal(Google(5),3))

Assertion failed.

3   Fail
assert(isequal(Google(20),6))

Assertion failed.

4   Fail
assert(isequal(Google(50),10))

Assertion failed.

5   Fail
assert(isequal(Google(75),12))

Assertion failed.

6   Fail
assert(isequal(Google(100),14))

Assertion failed.

7   Fail
assert(isequal(Google(120),15))

Assertion failed.

8   Fail
assert(isequal(Google(180),19))

Assertion failed.

9   Fail
assert(isequal(Google(250),22))

Assertion failed.

10   Fail
assert(isequal(Google(320),25))

Assertion failed.

11   Fail
assert(isequal(Google(360),27))

Assertion failed.

12   Fail
assert(isequal(Google(410),29))

Assertion failed.

13   Fail
assert(isequal(Google(500),32))

Assertion failed.

14   Fail
assert(isequal(Google(610),35))

Assertion failed.

15   Fail
assert(isequal(Google(1000),45))

Assertion failed.

Suggested Problems

More from this Author18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!