</>OfferRetriever
DashboardDiscuss
NEW

Summer Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

14

:

03

:

03

:

23

Get this deal
Back to Discussions

Meta | E4 | Software Engineer

closing_octopus4044

March 6, 2026 at 06:48 AM

0

0

Given a permutation p of length n, a number k is balanced if there are two indices l, r (1<= l <= r <= n) s.t. the numbers [p[l], p[l+1], ..., p[r] form a permutation of the numbers 1,2,...k. For each k (1 <= k <= n) determine if it is balanced. Return...

0 likes

0 comments

Share

Join the Discussion

Create a free account to read "Meta | E4 | Software Engineer" and join our community of engineers sharing interview experiences.

Create an account to view this post

No credit card required.

Access full discussion posts and insights

Connect with other engineers on their job search

Share your own experiences and questions

⭐ Join thousands of engineers in our community