Topic: Greedy Algorithm Problem / Level: beginner

Problem: Find the maximum number of pairs of people that can be seated together in a row where each pair must be seated adjacent.

Run the code to see the output here...