Question 1
Medium Rearrange Houses in Neighborhoods: given a two-dimensional array of houses, redistribute the numbers so that each row keeps its length, is sorted in ascending order, and contains no duplicates. If this is not possible, return the original input.
Experience
The described solution used a frequency map and a max heap, assigned numbers with higher frequencies to different rows first, and sorted each row. The main point to handle was the impossible case.