Showing 2 questions
Imagine a grid with guards and walls. The goal is to count how many cells are not visible to any guard.
#1. Count Unguarded Cells in the Grid
Given a permutation of the integers from 0 through n - 1, split it into as many chunks as possible. Sorting each chunk individually and concatenating them should produce a fully sorted array.
#2. Max Chunks To Make Sorted
Page 1 of 1 · 2 total