Spider's Web

A spider is trying to build a web for itself. The web built by it doubles everyday.

If the spider completely built the web in 15 days, how many days did it take for the spider to build 25% of the web?

Answer is a integer. Just put the number without any decimal places if its an integer. If the answer is Infinity, output Infinity.

Feel free to get in touch with us if you have any questions

Hints
  • Solution Approach
  • Complete Solution
10532 successful submissions.
Asked In:
  • Bloomberg
Click here to jump start your coding interview preparation