Minimum Stones Left After Halving Operations
Asked at Snowflake · Coding Questions · Difficulty: Medium
You are given a list of piles of stones and a number of operations. In one operation you choose any pile and remove half of its stones, rounded down. Apply exactly `k` operations and make the number of stones left as small as possible.
Loading the problem…
More Snowflake interview questions
- Design a Distributed Job Scheduler with Cron, Pause, Resume
- SET Card Game: Validate a Triple and List All Sets on the Table
- Design an ACL Authorization Service
- Design an S3-Style Blob Store with Deduplication
- Anti-Clockwise Outline of a Binary Tree
- SQL: Project Duration & Budget per Employee