PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Accenture

Find minimum racks for 2D bin packing

Last updated: May 12, 2026

Quick Overview

This question evaluates understanding of combinatorial optimization and multi-dimensional bin packing, assessing algorithmic design, resource-allocation reasoning, and computational complexity awareness.

  • medium
  • Accenture
  • Coding & Algorithms
  • Software Engineer

Find minimum racks for 2D bin packing

Company: Accenture

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

You are given N machines. Machine i requires two types of resources: (x_i, y_i). Each rack has capacity (A, B) for the two resources, and a machine must be placed entirely within a single rack. Multiple machines can share a rack as long as the sum of their resource requirements in each dimension does not exceed the rack capacity. Return the minimum number of racks needed to place all machines. Notes: - All racks are identical. - You may assign machines to racks in any grouping/order. - The naive approach is brute force / bitmask DP over subsets. Can you design a more efficient algorithm (or improved DP) and analyze its time complexity under reasonable constraints (e.g., N up to ~20–25 for exact solutions, or larger if using approximation/heuristics)?

Quick Answer: This question evaluates understanding of combinatorial optimization and multi-dimensional bin packing, assessing algorithmic design, resource-allocation reasoning, and computational complexity awareness.

Accenture logo
Accenture
Oct 7, 2025, 12:00 AM
Software Engineer
Technical Screen
Coding & Algorithms
7
0

You are given N machines. Machine i requires two types of resources: (x_i, y_i). Each rack has capacity (A, B) for the two resources, and a machine must be placed entirely within a single rack. Multiple machines can share a rack as long as the sum of their resource requirements in each dimension does not exceed the rack capacity.

Return the minimum number of racks needed to place all machines.

Notes:

  • All racks are identical.
  • You may assign machines to racks in any grouping/order.
  • The naive approach is brute force / bitmask DP over subsets. Can you design a more efficient algorithm (or improved DP) and analyze its time complexity under reasonable constraints (e.g., N up to ~20–25 for exact solutions, or larger if using approximation/heuristics)?

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Accenture•More Software Engineer•Accenture Software Engineer•Accenture Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.