You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.
where:
given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat, and seats[i] = 0 represents that the ith seat is empty (0-indexed).
There is at least one empty seat, and at least one person sitting.
Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized.
Return that maximum distance to the closest person.
The text was updated successfully, but these errors were encountered:
Hey @Saikat2407 , I would like to contribute to this problem, Please do assign it to me.
I am 4 start on codechef and specialist on codeforces.
I have a great command in data structures and algorithms. Will surely, provide you the best optimal solution.
Aloneking789
added a commit
to Aloneking789/DSA_Hacktoberfest2023
that referenced
this issue
Oct 10, 2023
FixesSaikat2407#330
The code finds the seat where Alex can sit to maximize the distance from the nearest person in a row of seats, considering seat occupancy (0 and 1).
Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.
where:
given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat, and seats[i] = 0 represents that the ith seat is empty (0-indexed).
There is at least one empty seat, and at least one person sitting.
Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized.
Return that maximum distance to the closest person.
The text was updated successfully, but these errors were encountered: