title: is there any Algorithm to allocate continuous 3 seats in flight while having some booked seats?
body: <p>I would like to go through good Algorithm to allocate continuous 3 seats in flight while having some booked seats.</p>
  
  <p><strong>Basically I want to find no of possible 3 continuos free seats to book?</strong></p>
  
  <p>I have tried to go through greedy way where i check continuous 3 unbooked seats and then count total no of seats to allocate 3 continuous seats.</p>