PhonePe | OA | July 2024 | Lights Arrangement | . Delivering PhonePe QR Codes | Coding Questions & Solutions |

PhonePe · Question · Posted Apr 2026

 Lights Arrangement Problem Statement Imagine you're organizing a series of lights for a festive event. Each light in the series can either be turned on or off, which we can represent using a binary system where 1 denotes a light being on and 0 denotes a light being off. These lights are arranged on a long string, and your task is to create different possible arrangements for these lights. Given an integer N, representing the number of lights in the ...

The full answer & interview discussion are available to premium members.

Log in Create a free account