โ† Walmart questions

Gravity-shifted block array sorting

Filed under Walmart

The question

Given an array representing blocks resting on the ground where indices hold the block counts, find the final state of the blocks when the gravity direction changes from top-to-bottom to right-to-left.

No write-up yet. Related questions below have one.

Related Walmart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.