โ† Practo questions

Array balancing, travel cost optimization, and car database design

Filed under Practo

The question

Balance an array of asteroids such that the sum of even and odd index elements are equal, or find the index of the element whose removal balances it. Minimize travel cost given two arrays (red and blue lines) with switching costs. Design a database for a car company given attributes like Car Model, Company, Fuel Type, Mileage, Color, along with SQL queries.

No write-up yet. Related questions below have one.

Related Practo questions

Collected from public candidate posts and coding forums. Updated Nov 2026.