solulubeta
Sign in
Story Problems / Arrays, windows & two pointers
01.17 · Problem

Robot Vacuum Spiral

Medium Matrix: shrinking boundaries Pro

This problem is part of solulu Pro

A robot vacuum cleans a rectangular room divided into m × n tiles. It starts at the top-left, moves right until the wall, then down, then left, then up, and keeps spiralling inwards. List the tile values in the order the…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 17 of 94 · updated 2026-10-12