GOOGLE SDE Phone Screening Round | 1 Question

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-01-18Added By Anonymous
Source: Link
🧭 Experience: unknown ✅ Outcome: unknown 💰 Compensation: unknown 📍 Location: unknown 🏢 Company: Google 🎓 Education: unknown 🎁 Benefits: unknown 📅 Offer Date: unknown Given an array of integers, select K elements such that product is maximized. Return product. Did a sorting based approach - but missed some cases where all the numbers were negative, followup was 1. No extra space after sorting 2. No sorting - suggested Priority queues. How would u do it?
Comments