← Questions

Ads retrieval service using a heap

0
GoogleCodingLast asked Mar 2026

Build a service that returns the best ads for a request, ranked by score, using a heap. Support adding and removing ads, and discuss the cost of each operation.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding