Problem 59791. Complete a geometric sequence

In Cody Problem 59786 minnolina asks us to find the integer that completes a randomly sorted arithmetic sequence with one missing element. This problem is similar, but it deals with geometric sequences. For example, in the list [4 8 32 128 16 2], the common ratio is 2, and the missing element is 64.
Write a function to find the missing element in a randomly sorted geometric sequence.

Solution Stats

53.85% Correct | 46.15% Incorrect
Last Solution submitted on Jul 12, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers7

Suggested Problems

More from this Author273

Problem Tags

Community Treasure Hunt

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

Start Hunting!