Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Implement a responsive hexagonal grid layout for items.

Hard

Problem Statement

Implement a responsive hexagonal grid layout for items.

Sample Output

Items are displayed in a hexagonal grid that adjusts on smaller screens.

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

<!DOCTYPE html> <html> <head> <style> /* Add CSS here to create the hexagonal grid */ </style> </head> <body> <div class="hex-grid"> <div class="hex">1</div> <div class="hex">2</div> <div class="hex">3</div> <div class="hex">4</div> <div class="hex">5</div> </div> </body> </html>

Document

To view the HTML changes, please type the code within the editor