</>OfferRetriever
DashboardDiscuss
NEW
Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to SmithRx Questions

Frog Distance

Medium

You are given an array blocks of N integers representing the heights of blocks arranged in a row, numbered from 0 to N - 1.

Two frogs start together on the same block. They then jump in opposite directions to maximize the distance between them. The distance between blocks at indices J and K (where J < K) is defined as K - J + 1. ...

Asked at:SmithRx
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.